fix(hotkey): ensure hotkeys save properly

This commit is contained in:
maybegreat48
2025-06-09 20:50:47 -04:00
parent cffb4bcbdd
commit aa27f1a561
+3 -5
View File
@@ -80,17 +80,15 @@ namespace YimMenu
};
int pressed_key = 0;
ListenAndApply(pressed_key, chain);
if (pressed_key > 1)
if (ListenAndApply(pressed_key, chain))
{
MarkStateDirty();
if (is_key_unique(pressed_key, chain))
{
chain.push_back(pressed_key);
}
}
MarkStateDirty();
}
void HotkeySystem::RunScriptImpl()