From c3e8127422c7439d9ddb07e3634c892abb7b53f4 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 9 Jul 2025 21:57:44 +1000 Subject: internal: pass around visibilities Instead of singleton Also for panels --- modules/drawers/Drawers.qml | 1 + modules/drawers/Panels.qml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/drawers') diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml index 10cd86b..27088a4 100644 --- a/modules/drawers/Drawers.qml +++ b/modules/drawers/Drawers.qml @@ -135,6 +135,7 @@ Variants { id: bar screen: scope.modelData + visibilities: visibilities popouts: panels.popouts } } diff --git a/modules/drawers/Panels.qml b/modules/drawers/Panels.qml index 5b2229c..909fc9f 100644 --- a/modules/drawers/Panels.qml +++ b/modules/drawers/Panels.qml @@ -27,8 +27,6 @@ Item { anchors.margins: Config.border.thickness anchors.leftMargin: bar.implicitWidth - Component.onCompleted: Visibilities.panels[screen] = this - Osd.Wrapper { id: osd @@ -44,6 +42,9 @@ Item { Notifications.Wrapper { id: notifications + visibilities: root.visibilities + panel: root + anchors.top: parent.top anchors.right: parent.right } -- cgit v1.2.3-freya