From 79cb1261f7b607f6602dd1f5f5537f5dbdb7f827 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 11 Apr 2018 16:12:03 +0200 Subject: [PATCH] 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. --- src/gui/themes.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui/themes.cpp b/src/gui/themes.cpp index da637aa6b..09831b25f 100644 --- a/src/gui/themes.cpp +++ b/src/gui/themes.cpp @@ -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);