fix(color): cleanup correct screen layout when changing models (#7385)

This commit is contained in:
philmoz
2026-06-03 13:39:03 +10:00
committed by GitHub
parent 986926765c
commit 1d4c723c9d
@@ -365,11 +365,13 @@ class ModelsPageBody : public Window
memcpy(g_eeGeneral.currModelFilename, model->modelFilename,
LEN_MODEL_FILENAME);
// Delete old main view layout
LayoutFactory::deleteCustomScreens();
loadModel(g_eeGeneral.currModelFilename, true);
modelslist.setCurrentModel(model);
// Main view layout
LayoutFactory::deleteCustomScreens();
// Load new main view layout
LayoutFactory::loadCustomScreens();
storageDirty(EE_GENERAL);