Fix developer mode secret toggle not requiring the right amount of clicks (#5437)

* the world is right again

* Move increment to top of function

Signed-off-by: Prospector <6166773+Prospector@users.noreply.github.com>

---------

Signed-off-by: Prospector <6166773+Prospector@users.noreply.github.com>
Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com>
This commit is contained in:
Xander
2026-03-17 20:08:06 +00:00
committed by GitHub
parent c556624d0e
commit 7852529915

View File

@@ -200,6 +200,7 @@ const developerModeCounter = ref(0)
const state = useGeneratedState()
function developerModeIncrement() {
developerModeCounter.value++
if (developerModeCounter.value >= 5) {
flags.value.developerMode = !flags.value.developerMode
developerModeCounter.value = 0
@@ -217,8 +218,6 @@ function developerModeIncrement() {
type: 'success',
})
}
} else {
developerModeCounter.value++
}
}
</script>