Commit 0e4484b6 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Activity KCM] Disallow adding/removing activity when restricted

The plasma-desktop/add_activities will disallow adding and removing activities from the Activity Manager in Plasma.
However, the KCM would allow to do so regardless.

Differential Revision:
parent e8c4c395
......@@ -45,6 +45,7 @@ Item {
onClicked: ActivitySettings.newActivity();
enabled: !dialogCreateActivityLoader.itemVisible
visible: ActivitySettings.newActivityAuthorized
Loader {
......@@ -159,6 +160,8 @@ Item {
iconName: "edit-delete"
onClicked: ActivitySettings.deleteActivity(;
visible: ActivitySettings.newActivityAuthorized
visible: !dialogDeleteLoader.itemVisible
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