use _ prefix for "hidden" (for internal, fallback, language, etc. themes); avoid
reading a file at runtime to get this info
This commit is contained in:
@@ -187,15 +187,7 @@ bool ThemeManager::DoesThemeExist( const RString &sThemeName )
|
||||
|
||||
bool ThemeManager::IsThemeSelectable( const RString &sThemeName )
|
||||
{
|
||||
RString sDir = GetThemeDirFromName(sThemeName);
|
||||
IniFile ini;
|
||||
ini.ReadFile( sDir + THEME_INFO_INI );
|
||||
|
||||
bool b;
|
||||
if( ini.GetValue("ThemeInfo","Selectable",b) && !b )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return sThemeName.Left(1) == "_";
|
||||
}
|
||||
|
||||
RString ThemeManager::GetThemeDisplayName( const RString &sThemeName )
|
||||
|
||||
Reference in New Issue
Block a user