fix(color): model YAML not updated when screens are added or removed (#6780)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user