Commit db1b3b6e authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[applets/dashboard] Don't show widgets explorer when shell is not mutable

Currently the widgets explorer is not shown when the shell is SystemImmutable, but when it is UserImmuable we show it and change it to mutable when trying to place a widget

This is somewhat inconsistent with what we do in other places, e.g. we hide the Add Widgets action in the desktop context menu when the shell is not mutable
parent 88cb2f92
Pipeline #224747 passed with stage
in 3 minutes and 43 seconds
......@@ -130,7 +130,6 @@ Kicker.DashboardWindow {
rootModel.refresh();
} else if (tabBar.activeTab === 1) {
root.toggle();
containmentInterface.ensureMutable(containmentInterface.screenContainment(plasmoid));
kwindowsystem.showingDesktop = true;
}
}
......@@ -232,7 +231,7 @@ Kicker.DashboardWindow {
anchors.horizontalCenter: parent.horizontalCenter
visible: (plasmoid.immutability !== PlasmaCore.Types.SystemImmutable)
visible: (plasmoid.immutability === PlasmaCore.Types.Mutable)
onActiveTabChanged: {
root.updateWidgetExplorer();
......@@ -669,7 +668,6 @@ Kicker.DashboardWindow {
onItemActivated: {
if (tabBar.activeTab === 1) {
containmentInterface.ensureMutable(containmentInterface.screenContainment(plasmoid));
root.widgetExplorer.addApplet(currentItem.m.pluginName);
root.toggle();
kwindowsystem.showingDesktop = true;
......
Supports Markdown
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