forked from Shinonome/dots-hyprland
SysTrayMenu: hide pin button when in subpage, remove unnecessary close()
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import qs.services
|
import qs.services
|
||||||
import qs.modules.common
|
import qs.modules.common
|
||||||
import qs.modules.common.widgets
|
import qs.modules.common.widgets
|
||||||
@@ -184,12 +186,8 @@ PopupWindow {
|
|||||||
Layout.bottomMargin: 0
|
Layout.bottomMargin: 0
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
visible: root.trayItemId !== undefined && root.trayItemId.length > 0
|
visible: root.trayItemId !== undefined && root.trayItemId.length > 0 && stackView.depth === 1
|
||||||
|
releaseAction: () => TrayService.togglePin(root.trayItemId);
|
||||||
releaseAction: () => {
|
|
||||||
TrayService.togglePin(root.trayItemId);
|
|
||||||
root.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
anchors {
|
anchors {
|
||||||
|
|||||||
Reference in New Issue
Block a user