Add option to disable MPRIS interface.

#707
This commit is contained in:
Craig Drummond
2015-07-25 18:07:15 +01:00
committed by Craig Drummond
parent 38f5af4b45
commit 9215b4bdf5
8 changed files with 55 additions and 9 deletions

View File

@@ -195,6 +195,9 @@ InterfaceSettings::InterfaceSettings(QWidget *p)
} else if (!enableTrayItem && enableNotifications) {
tabWidget->setTabText(3, i18n("Notifications"));
}
#if !defined QT_QTDBUS_FOUND
REMOVE(enableMpris)
#endif
#if defined Q_OS_WIN || defined Q_OS_MAC || !defined QT_QTDBUS_FOUND
if (systemTrayPopup && systemTrayCheckBox) {
connect(systemTrayCheckBox, SIGNAL(toggled(bool)), SLOT(systemTrayCheckBoxToggled()));
@@ -281,6 +284,9 @@ void InterfaceSettings::load()
setPlayQueueBackgroundOpacityLabel();
setPlayQueueBackgroundBlurLabel();
enablePlayQueueBackgroundOptions();
if (enableMpris) {
enableMpris->setChecked(Settings::self()->mpris());
}
}
void InterfaceSettings::save()
@@ -351,6 +357,9 @@ void InterfaceSettings::save()
}
Settings::self()->saveSidebar(sidebar);
Settings::self()->saveSplitterAutoHide(sbAutoHide->isChecked());
if (enableMpris) {
Settings::self()->saveMpris(enableMpris->isChecked());
}
}
#ifndef ENABLE_KDE_SUPPORT