Fix FRAME_LIMIT int not being reset on exit if the turbo hotkey is spammed
This commit is contained in:
parent
2fb683c327
commit
516382e6b6
@ -26,7 +26,6 @@ class HotkeyFunctions (
|
|||||||
|
|
||||||
fun toggleTurboSpeed() {
|
fun toggleTurboSpeed() {
|
||||||
if (isTurboSpeedEnabled) {
|
if (isTurboSpeedEnabled) {
|
||||||
normalSpeed = IntSetting.FRAME_LIMIT.int
|
|
||||||
IntSetting.FRAME_LIMIT.int = IntSetting.TURBO_SPEED.int
|
IntSetting.FRAME_LIMIT.int = IntSetting.TURBO_SPEED.int
|
||||||
} else {
|
} else {
|
||||||
IntSetting.FRAME_LIMIT.int = normalSpeed
|
IntSetting.FRAME_LIMIT.int = normalSpeed
|
||||||
@ -41,7 +40,6 @@ class HotkeyFunctions (
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun resetTurboSpeed() {
|
fun resetTurboSpeed() {
|
||||||
if (isTurboSpeedEnabled) {
|
|
||||||
isTurboSpeedEnabled = false
|
isTurboSpeedEnabled = false
|
||||||
IntSetting.FRAME_LIMIT.int = normalSpeed
|
IntSetting.FRAME_LIMIT.int = normalSpeed
|
||||||
|
|
||||||
@ -49,4 +47,3 @@ class HotkeyFunctions (
|
|||||||
NativeLibrary.reloadSettings()
|
NativeLibrary.reloadSettings()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user