Ensure that 'Limit framerate' option is synced with the toggle hotkeys

This commit is contained in:
Jon Pacheco 2019-05-14 17:29:49 +01:00
parent 7d2ba09fd7
commit f769d6e23f
1 changed files with 1 additions and 0 deletions

View File

@ -1685,6 +1685,7 @@ void OnSetLimitFPS(uiMenuItem* item, uiWindow* window, void* blarg)
int chk = uiMenuItemChecked(item);
if (chk != 0) Config::LimitFPS = true;
else Config::LimitFPS = false;
HotkeyFPSToggle = !Config::LimitFPS; // ensure that the hotkey toggle indicator is synced with this menu item
}
void ApplyNewSettings(int type)