fix(color): issues with menus (possible EM, double loading of content) (#5208)

This commit is contained in:
philmoz
2024-06-22 12:05:39 +10:00
committed by GitHub
parent 139a09685e
commit 5c422581ca
5 changed files with 38 additions and 25 deletions
+2 -1
View File
@@ -69,7 +69,8 @@ class LayoutChoice : public Button
std::distance(LayoutFactory::getRegisteredLayouts().begin(), it));
menu->setCloseHandler([=]() {
update();
if (!menu->deleted())
update();
});
}
+1 -1
View File
@@ -214,7 +214,7 @@ void SourceChoice::openMenu()
});
#endif
fillMenu(menu);
// fillMenu(menu); - called by MenuToolbar
menu->setCloseHandler([=]() { setEditMode(false); });
}
+1 -1
View File
@@ -161,7 +161,7 @@ void SwitchChoice::openMenu()
});
#endif
fillMenu(menu);
// fillMenu(menu); - called by MenuToolbar
menu->setCloseHandler([=]() { setEditMode(false); });
}