Commit 414d6579 authored by Vincent Pinon's avatar Vincent Pinon

Don't show color theme configuration option unavailable on Windows

BUG: 375723
parent 673d0f79
......@@ -205,14 +205,15 @@ void ThemeManager::populateThemeMenu()
updateCurrentKDEdefaultThemePreview();
setCurrentTheme(theme);
d->themeMenuAction->addSeparator();
QAction *config = new QAction(i18n("Configuration..."), d->themeMenuAction);
config->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-theme")));
d->themeMenuAction->addAction(config);
connect(config, &QAction::triggered,
this, &ThemeManager::slotConfigColors);
if (!QStandardPaths::findExecutable(QStringLiteral("kcmshell5")).isEmpty()) {
d->themeMenuAction->addSeparator();
QAction *config = new QAction(i18n("Configuration..."), d->themeMenuAction);
config->setIcon(QIcon::fromTheme(QStringLiteral("preferences-desktop-theme")));
d->themeMenuAction->addAction(config);
connect(config, &QAction::triggered,
this, &ThemeManager::slotConfigColors);
}
}
void ThemeManager::slotConfigColors()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment