From de82d391be5e0880bb0161053640002179e71a29 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 28 Jul 2025 23:12:58 +1000 Subject: popouts: unload when hidden --- modules/bar/popouts/Content.qml | 2 +- modules/bar/popouts/Network.qml | 2 +- modules/bar/popouts/Wrapper.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml index 5b396a9..453611c 100644 --- a/modules/bar/popouts/Content.qml +++ b/modules/bar/popouts/Content.qml @@ -30,7 +30,7 @@ Item { Popout { name: "network" - source: "Network.qml" + sourceComponent: Network {} } Popout { diff --git a/modules/bar/popouts/Network.qml b/modules/bar/popouts/Network.qml index 5a2d472..80e1732 100644 --- a/modules/bar/popouts/Network.qml +++ b/modules/bar/popouts/Network.qml @@ -49,7 +49,7 @@ ColumnLayout { RowLayout { id: networkItem - required property var modelData + required property Network.AccessPoint modelData readonly property bool isConnecting: root.connectingToSsid === modelData.ssid readonly property bool loading: networkItem.isConnecting diff --git a/modules/bar/popouts/Wrapper.qml b/modules/bar/popouts/Wrapper.qml index 9a7f7c1..4ef7492 100644 --- a/modules/bar/popouts/Wrapper.qml +++ b/modules/bar/popouts/Wrapper.qml @@ -72,7 +72,7 @@ Item { Comp { id: content - shouldBeActive: !root.detachedMode + shouldBeActive: root.hasCurrent && !root.detachedMode asynchronous: true anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter -- cgit v1.2.3-freya