mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user