37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From 04c747a41d8c01248c7baeec5c852c2298f76fc3 Mon Sep 17 00:00:00 2001
|
|
From: Christoph Wolk <cwo.kde@posteo.net>
|
|
Date: Mon, 1 Dec 2025 14:36:09 +0100
|
|
Subject: [PATCH] applets/kickoff: also close when triggering from footer menu
|
|
|
|
Kickoff already closes when one of the power/session buttons from the
|
|
menu is pressed, but the same does not happen if the same action is
|
|
shown in the overflow menu.
|
|
|
|
Instead, also close kickoff in that case.
|
|
|
|
CCBUG: 508725
|
|
---
|
|
applets/kickoff/LeaveButtons.qml | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/applets/kickoff/LeaveButtons.qml b/applets/kickoff/LeaveButtons.qml
|
|
index c9a14dc3254..acf83639341 100644
|
|
--- a/applets/kickoff/LeaveButtons.qml
|
|
+++ b/applets/kickoff/LeaveButtons.qml
|
|
@@ -214,7 +214,12 @@ RowLayout {
|
|
|
|
text: model.display
|
|
icon: model.decoration
|
|
- onClicked: filteredMenuItemsModel.trigger(index)
|
|
+ onClicked: {
|
|
+ filteredMenuItemsModel.trigger(index)
|
|
+ if (kickoff.hideOnWindowDeactivate) {
|
|
+ kickoff.expanded = false;
|
|
+ }
|
|
+ }
|
|
}
|
|
onObjectAdded: (index, object) => contextMenu.addMenuItem(object)
|
|
onObjectRemoved: (index, object) => contextMenu.removeMenuItem(object)
|
|
--
|
|
GitLab
|
|
|