SysTrayMenu: hide pin button when in subpage, remove unnecessary close()

This commit is contained in:
end-4
2026-03-19 18:27:49 +01:00
parent 7a01602c5e
commit fd2d69e407
@@ -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 {