[Containment Interface] Don't add containment actions to applet actions on desktop
For a panel it makes sense to have panel options easily available on every applet but on the desktop you typically have some free space to access the containment actions. This is especially confusing if you have a Folder View on your Folder View desktop and end up with a "Folder View Options" menu that affects the desktop behind it rather than the applet. Differential Revision: https://phabricator.kde.org/D8009
This commit is contained in:
parent
6df656252b
commit
cab8fd9160
@ -1141,7 +1141,9 @@ void ContainmentInterface::addAppletActions(QMenu *desktopMenu, Plasma::Applet *
|
||||
}
|
||||
|
||||
QMenu *containmentMenu = new QMenu(i18nc("%1 is the name of the containment", "%1 Options", m_containment->title()), desktopMenu);
|
||||
addContainmentActions(containmentMenu, event);
|
||||
if (m_containment->containmentType() != Plasma::Types::DesktopContainment) {
|
||||
addContainmentActions(containmentMenu, event);
|
||||
}
|
||||
|
||||
if (!containmentMenu->isEmpty()) {
|
||||
int enabled = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user