Skip to content

Commit

Permalink
fix(color): Display of model notes when selecting model (#2922)
Browse files Browse the repository at this point in the history
* Fix display of model notes when selecting model.
Fixes issues 2722 and 2921.

* Move view close code as suggested by @pfeerick.
  • Loading branch information
philmoz authored and pfeerick committed Dec 23, 2022
1 parent d78622a commit aa1785a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions radio/src/gui/colorlcd/model_select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,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);
Expand All @@ -395,10 +399,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)
Expand Down

0 comments on commit aa1785a

Please sign in to comment.