fix(color): model YAML not updated when screens are added or removed (#6780)

This commit is contained in:
philmoz
2025-11-12 11:22:32 +10:00
committed by GitHub
parent 0d27f05295
commit 9a49d24690
2 changed files with 4 additions and 1 deletions
@@ -212,10 +212,11 @@ void ScreenSetupPage::build(Window* window)
// ... and reload
LayoutFactory::loadCustomScreens();
// Rest to first screen so user knows something has happened
// Reset to first screen so user knows something has happened
PageGroup* menu = (PageGroup*)window->getParent();
menu->setCurrentTab(FIRST_SCREEN_OFFSET);
storageDirty(EE_MODEL);
return 0;
});
auto obj = btn->getLvObj();
@@ -63,6 +63,8 @@ PageDef screensMenuItems[] = {
screenData.LayoutId);
subMenu->onPress(newIdx + ScreenSetupPage::FIRST_SCREEN_OFFSET);
storageDirty(EE_MODEL);
} else {
TRACE("Add screen: factory is NULL");
}