fix(color): Display of model notes when selecting model (#2922)

* Fix display of model notes when selecting model.
Fixes issues 2722 and 2921.

* Move view close code as suggested by @pfeerick.
This commit is contained in:
philmoz
2022-12-22 19:01:29 +10:00
committed by GitHub
parent da5d056257
commit 8eb55452a5
+4 -4
View File
@@ -386,6 +386,10 @@ void ModelsPageBody::selectModel(ModelCell *model)
}
}
// Exit to main view
auto w = Layer::back();
if (w) w->onCancel();
// store changes (if any) and load selected model
storageFlushCurrentModel();
storageCheck(true);
@@ -397,10 +401,6 @@ void ModelsPageBody::selectModel(ModelCell *model)
storageDirty(EE_GENERAL);
storageCheck(true);
// Exit to main view
auto w = Layer::back();
if (w) w->onCancel();
}
void ModelsPageBody::duplicateModel(ModelCell* model)