Fix none theme not saving properly (default is selected at restart)

This commit is contained in:
Jordy Ruiz 2018-12-10 15:31:43 +01:00
parent 899f9f0086
commit e25c28e8e3

View file

@ -790,6 +790,8 @@ void CMenus::RenderThemeSelection(CUIRect MainView, bool Header)
if(m_lThemes.size() == 0) // not loaded yet
{
if(!g_Config.m_ClShowMenuMap)
str_copy(g_Config.m_ClMenuMap, "", sizeof(g_Config.m_ClMenuMap)); // cl_menu_map otherwise resets to default on loading
m_lThemes.add(CTheme("", false, false)); // no theme
Storage()->ListDirectory(IStorage::TYPE_ALL, "ui/themes", ThemeScan, (CMenus*)this);
Storage()->ListDirectory(IStorage::TYPE_ALL, "ui/themes", ThemeIconScan, (CMenus*)this);