CThemes: visualize migrated theme after possible update

After an update this entry will be only shown if theme name is a new
configure option and theme name is still unknown.
This entry visualizes the state of current migrated theme. The old theme
settings will be kept.
If required users should save the theme as a new userdefined theme or
select a given theme.
This commit is contained in:
2018-04-11 16:12:03 +02:00
parent 23e684258f
commit 79cb1261f7

View File

@@ -123,6 +123,13 @@ void CThemes::initThemesMenu(CMenuWidget &themes)
std::string userThemeFile = "";
CMenuForwarder* oj;
// only to visualize if we have a migrated theme
if (g_settings.theme_name.empty() || g_settings.theme_name == MIGRATE_THEME_NAME)
{
themes.addItem(new CMenuSeparator(CMenuSeparator::LINE));
themes.addItem(new CMenuForwarder(MIGRATE_THEME_NAME, false, "", this));
}
for(int p = 0;p < 2;p++)
{
n = scandir(pfade[p], &themelist, 0, alphasort);