Skip to content

Commit

Permalink
gui: destroy and rerender main menu only when leaving settings
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito authored and Tupakaveli committed Dec 9, 2019
1 parent cbfab5e commit 515df94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ void guiShowConfig()
diaGetInt(diaConfig, CFG_APPMODE, &gAPPStartMode);

applyConfig(-1, -1);
menuReinitMainMenu();
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/opl.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,6 @@ void applyConfig(int themeID, int langID)

initAllSupport(0);

menuReinitMainMenu();

moduleUpdateMenu(USB_MODE, changed, langChanged);
moduleUpdateMenu(ETH_MODE, changed, langChanged);
moduleUpdateMenu(HDD_MODE, changed, langChanged);
Expand Down

0 comments on commit 515df94

Please sign in to comment.