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

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:
parent bd560425
......@@ -44,7 +44,8 @@ PlasmaComponents.ListItem {
onClicked: {
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 = !;
CurrentItemHighLight {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment