From fd2d69e4076d42abebed184a5a2173e698f56327 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 19 Mar 2026 18:27:49 +0100 Subject: [PATCH] SysTrayMenu: hide pin button when in subpage, remove unnecessary close() --- .../quickshell/ii/modules/ii/bar/SysTrayMenu.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/ii/bar/SysTrayMenu.qml b/dots/.config/quickshell/ii/modules/ii/bar/SysTrayMenu.qml index cba4cf615..03c734b9d 100644 --- a/dots/.config/quickshell/ii/modules/ii/bar/SysTrayMenu.qml +++ b/dots/.config/quickshell/ii/modules/ii/bar/SysTrayMenu.qml @@ -1,3 +1,5 @@ +pragma ComponentBehavior: Bound + import qs.services import qs.modules.common import qs.modules.common.widgets @@ -184,12 +186,8 @@ PopupWindow { Layout.bottomMargin: 0 Layout.fillWidth: true - visible: root.trayItemId !== undefined && root.trayItemId.length > 0 - - releaseAction: () => { - TrayService.togglePin(root.trayItemId); - root.close(); - } + visible: root.trayItemId !== undefined && root.trayItemId.length > 0 && stackView.depth === 1 + releaseAction: () => TrayService.togglePin(root.trayItemId); contentItem: RowLayout { anchors {