Fixed default theme handling in themeMenuScan().

This commit is contained in:
yellows8 2018-09-28 23:35:31 -04:00
parent 992c4c482b
commit 5b35642de7

View File

@ -209,8 +209,10 @@ int themeMenuScan(const char* target) {
menuEntry_s* me = menuCreateEntry(ENTRY_TYPE_THEME); menuEntry_s* me = menuCreateEntry(ENTRY_TYPE_THEME);
if(me) { if(me) {
if(menuEntryLoad(me, "Default Theme", false));//Create Default theme Menu Entry if(menuEntryLoad(me, "Default Theme", false))//Create Default theme Menu Entry
menuAddEntryToFront(me); menuAddEntryToFront(me);
else
menuDeleteEntry(me);
} }
// Swap the menu and clear the previous menu // Swap the menu and clear the previous menu
s_curMenu = !s_curMenu; s_curMenu = !s_curMenu;