close popup upon item select

klipper follows the pattern of a menu, in order to be consistent
with other applets that use this pattern (like launchers or
device notifier) close the menu after cliching on an item
to show the user something happened

BUG:361629
wilder-5.14
Marco Martin 10 years ago
parent 59461c332c
commit edd301531a
  1. 5
      applets/clipboard/contents/ui/ClipboardItemDelegate.qml

@ -41,7 +41,10 @@ PlasmaComponents.ListItem {
enabled: true
onClicked: menuItem.itemSelected(UuidRole)
onClicked: {
menuItem.itemSelected(UuidRole);
plasmoid.expanded = false;
}
onContainsMouseChanged: {
if (containsMouse) {
menuListView.currentIndex = index

Loading…
Cancel
Save