diff --git a/containments/panel/package/contents/ui/main.qml b/containments/panel/package/contents/ui/main.qml index 871fe9b4..633d48c9 100644 --- a/containments/panel/package/contents/ui/main.qml +++ b/containments/panel/package/contents/ui/main.qml @@ -147,6 +147,17 @@ Item { } IndicatorProviders.VolumeProvider { id: volumeProvider + + readonly property var soundQuickSetting: QuickSetting { + text: i18n("Sound") + icon: "audio-speakers-symbolic" + enabled: false + settingsCommand: "plasma-settings -m kcm_pulseaudio" + function toggle() { + volumeProvider.showVolumeOverlay() + } + Component.onCompleted: quickSettings.quickSettingsModel.model.push(volumeProvider.soundQuickSetting) + } } IndicatorProviders.WifiProvider { id: wifiProvider diff --git a/containments/panel/package/contents/ui/quicksettings/QuickSettingsModel.qml b/containments/panel/package/contents/ui/quicksettings/QuickSettingsModel.qml index 120f3b3f..9b40b835 100644 --- a/containments/panel/package/contents/ui/quicksettings/QuickSettingsModel.qml +++ b/containments/panel/package/contents/ui/quicksettings/QuickSettingsModel.qml @@ -76,15 +76,6 @@ Item { enabled: false settingsCommand: "plasma-settings -m kcm_mobile_power" }, - QuickSetting { - text: i18n("Sound") - icon: "audio-speakers-symbolic" - enabled: false - settingsCommand: "plasma-settings -m kcm_pulseaudio" - function toggle() { - volumeProvider.showVolumeOverlay() - } - }, QuickSetting { text: i18n("Flashlight") icon: "flashlight-on"