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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user