Commit 17542416 authored by Eugene Popov's avatar Eugene Popov Committed by Nate Graham

[applets/clipboard]: Fix applet closing itself when clicking on a history item...

[applets/clipboard]: Fix applet closing itself when clicking on a history item while the tray popup is pinned open

Summary:
When I pin a Klipper widget and then click on a history item, the Klipper widget closes.

To fix this bug, we need to check if Klipped is pinned, but to be able to do this, we also need to "forward" the pinned state from the SystemTray applet to the Klipper applet.

BUG: 416510
FIXED-IN: 5.19.0

Reviewers: ngraham, #plasma

Reviewed By: ngraham

Subscribers: davidedmundson, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28408
parent bd560425
......@@ -44,7 +44,8 @@ PlasmaComponents.ListItem {
onClicked: {
menuItem.itemSelected(UuidRole);
plasmoid.expanded = false;
if (plasmoid.hideOnWindowDeactivate)
plasmoid.expanded = false;
}
onContainsMouseChanged: {
if (containsMouse) {
......
......@@ -89,6 +89,10 @@ MouseArea {
target: plasmoid.configuration
onExtraItemsChanged: plasmoid.nativeInterface.allowedPlasmoids = plasmoid.configuration.extraItems
onPinChanged: {
if (root.activeApplet)
root.activeApplet.hideOnWindowDeactivate = !plasmoid.configuration.pin;
}
}
CurrentItemHighLight {
......
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