Fix FRAME_LIMIT int not being reset on exit if the turbo hotkey is spammed

This commit is contained in:
Briar 2025-04-11 23:49:01 +02:00 committed by OpenSauce
parent bf4eef8e58
commit 14413d896f

View file

@ -26,7 +26,6 @@ class HotkeyFunctions (
fun toggleTurboSpeed() {
if (isTurboSpeedEnabled) {
normalSpeed = IntSetting.FRAME_LIMIT.int
IntSetting.FRAME_LIMIT.int = IntSetting.TURBO_SPEED.int
} else {
IntSetting.FRAME_LIMIT.int = normalSpeed
@ -41,7 +40,6 @@ class HotkeyFunctions (
}
fun resetTurboSpeed() {
if (isTurboSpeedEnabled) {
isTurboSpeedEnabled = false
IntSetting.FRAME_LIMIT.int = normalSpeed
@ -49,4 +47,3 @@ class HotkeyFunctions (
NativeLibrary.reloadSettings()
}
}
}