fix(color): cleanup correct screen layout when changing models (#7385)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user