KeyMap: Simplify UI updates.

Better to avoid tightly coupled notifications of updates.
This commit is contained in:
Unknown W. Brackets committed 2021-08-29 08:02:52 -07:00
1 parent f7b92ebb29
commit e7666e472f
5 files changed
+30 -6

No files matched your search

+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;