Plasma1 behavior: no remove action in panels
the remove context menu for applets is only visible when the panel controller is open less accidental removal
This commit is contained in:
parent
051dabae5e
commit
9d1727a1a4
@ -781,7 +781,8 @@ void ContainmentInterface::addAppletActions(QMenu &desktopMenu, Plasma::Applet *
|
||||
}
|
||||
}
|
||||
|
||||
if (containment()->immutability() == Plasma::Types::Mutable) {
|
||||
if (containment()->immutability() == Plasma::Types::Mutable &&
|
||||
(containment()->containmentType() != Plasma::Types::PanelContainment || containment()->isUserConfiguring())) {
|
||||
QAction *closeApplet = applet->actions()->action("remove");
|
||||
//qDebug() << "checking for removal" << closeApplet;
|
||||
if (closeApplet) {
|
||||
|
Loading…
Reference in New Issue
Block a user