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
|
// ... and reload
|
||||||
LayoutFactory::loadCustomScreens();
|
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();
|
PageGroup* menu = (PageGroup*)window->getParent();
|
||||||
menu->setCurrentTab(FIRST_SCREEN_OFFSET);
|
menu->setCurrentTab(FIRST_SCREEN_OFFSET);
|
||||||
|
|
||||||
|
storageDirty(EE_MODEL);
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
auto obj = btn->getLvObj();
|
auto obj = btn->getLvObj();
|
||||||
|
|||||||
@@ -63,6 +63,8 @@ PageDef screensMenuItems[] = {
|
|||||||
screenData.LayoutId);
|
screenData.LayoutId);
|
||||||
|
|
||||||
subMenu->onPress(newIdx + ScreenSetupPage::FIRST_SCREEN_OFFSET);
|
subMenu->onPress(newIdx + ScreenSetupPage::FIRST_SCREEN_OFFSET);
|
||||||
|
|
||||||
|
storageDirty(EE_MODEL);
|
||||||
} else {
|
} else {
|
||||||
TRACE("Add screen: factory is NULL");
|
TRACE("Add screen: factory is NULL");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user