KeyMap: Simplify UI updates.

Better to avoid tightly coupled notifications of updates.
This commit is contained in:
Unknown W. Brackets
2021-08-29 08:02:52 -07:00
parent f7b92ebb29
commit e7666e472f
5 changed files with 30 additions and 6 deletions
+1 -1
View File
@@ -351,7 +351,7 @@ namespace MainWindow {
bool changed = false;
const std::string curLanguageID = i18nrepo.LanguageID();
if (curLanguageID != menuLanguageID || menuKeymapGeneration != KeyMap::g_controllerMapGeneration) {
if (curLanguageID != menuLanguageID || KeyMap::HasChanged(menuKeymapGeneration)) {
DoTranslateMenus(hWnd, menu);
menuLanguageID = curLanguageID;
changed = true;