From 5b35642de73c65ee63ae904288f1cbaea6a8e884 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Fri, 28 Sep 2018 23:35:31 -0400 Subject: [PATCH] Fixed default theme handling in themeMenuScan(). --- common/menu-list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/menu-list.c b/common/menu-list.c index 2b693ad..07c108b 100644 --- a/common/menu-list.c +++ b/common/menu-list.c @@ -209,8 +209,10 @@ int themeMenuScan(const char* target) { menuEntry_s* me = menuCreateEntry(ENTRY_TYPE_THEME); 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); + else + menuDeleteEntry(me); } // Swap the menu and clear the previous menu s_curMenu = !s_curMenu;