mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 10:14:45 +00:00
quicksettings/donotdisturb: Fix incorrect package format
This commit is contained in:
parent
85d70bb589
commit
e9dad0651c
2 changed files with 18 additions and 18 deletions
|
|
@ -151,8 +151,7 @@ QList<QString> MobileShellSettings::enabledQuickSettings() const
|
||||||
// TODO move defaults to file
|
// TODO move defaults to file
|
||||||
// we aren't worried about quicksettings not showing up though, any that are not specified will be automatically added to the end
|
// we aren't worried about quicksettings not showing up though, any that are not specified will be automatically added to the end
|
||||||
return group.readEntry("enabledQuickSettings",
|
return group.readEntry("enabledQuickSettings",
|
||||||
QList<QString>{
|
QList<QString>{QStringLiteral("org.kde.plasma.quicksetting.wifi"),
|
||||||
QStringLiteral("org.kde.plasma.quicksetting.wifi"),
|
|
||||||
QStringLiteral("org.kde.plasma.quicksetting.mobiledata"),
|
QStringLiteral("org.kde.plasma.quicksetting.mobiledata"),
|
||||||
QStringLiteral("org.kde.plasma.quicksetting.bluetooth"),
|
QStringLiteral("org.kde.plasma.quicksetting.bluetooth"),
|
||||||
QStringLiteral("org.kde.plasma.quicksetting.flashlight"),
|
QStringLiteral("org.kde.plasma.quicksetting.flashlight"),
|
||||||
|
|
@ -167,7 +166,8 @@ QList<QString> MobileShellSettings::enabledQuickSettings() const
|
||||||
QStringLiteral("org.kde.plasma.quicksetting.powermenu"),
|
QStringLiteral("org.kde.plasma.quicksetting.powermenu"),
|
||||||
QStringLiteral("org.kde.plasma.quicksetting.keyboardtoggle"),
|
QStringLiteral("org.kde.plasma.quicksetting.keyboardtoggle"),
|
||||||
QStringLiteral("org.kde.plasma.quicksetting.caffeine"),
|
QStringLiteral("org.kde.plasma.quicksetting.caffeine"),
|
||||||
});
|
QStringLiteral("org.kde.plasma.quicksetting.donotdisturb"),
|
||||||
|
QStringLiteral("org.kde.plasma.quicksetting.record")});
|
||||||
}
|
}
|
||||||
|
|
||||||
void MobileShellSettings::setEnabledQuickSettings(QList<QString> &list)
|
void MobileShellSettings::setEnabledQuickSettings(QList<QString> &list)
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
||||||
|
|
||||||
MobileShell.QuickSetting {
|
MobileShell.QuickSetting {
|
||||||
text: i18n("Do Not Disturb")
|
text: i18n("Do Not Disturb")
|
||||||
icon: enabled ? "notifications" : "notifications-disabled"
|
icon: enabled ? "notifications-disabled" : "notifications"
|
||||||
status: ""
|
status: ""
|
||||||
enabled: MobileShell.TopPanelControls.notificationsWidget && MobileShell.TopPanelControls.notificationsWidget.doNotDisturbModeEnabled
|
enabled: MobileShell.TopPanelControls.notificationsWidget && MobileShell.TopPanelControls.notificationsWidget.doNotDisturbModeEnabled
|
||||||
available: MobileShell.TopPanelControls.notificationsWidget
|
available: MobileShell.TopPanelControls.notificationsWidget
|
||||||
Loading…
Reference in a new issue