Commit 5edb4fc9 authored by Nate Graham's avatar Nate Graham 💤
Browse files

Open activities KCM in System Settings if possible

There's no need to use a home-grown function for this;
KCMShell.openSystemSettings() exists and will do everything for us. So
let's port to that.

BUG: 423140
FIXED-IN: 5.20
parent 9986d9a6
......@@ -25,6 +25,9 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras
// for KCMShell
import org.kde.kquickcontrolsaddons 2.0
import org.kde.activities.settings 0.1
Item {
......@@ -105,8 +108,9 @@ Item {
PlasmaComponents.ToolButton {
id: configureButton
iconSource: "configure"
visible: KCMShell.authorize("kcm_activities.desktop").length > 0
onClicked: {
ActivitySettings.configureActivities();
KCMShell.openSystemSettings("kcm_activities");
root.closeRequested();
}
}
......
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