summaryrefslogtreecommitdiff
path: root/modules/bar/popouts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-28 23:12:58 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-28 23:12:58 +1000
commitde82d391be5e0880bb0161053640002179e71a29 (patch)
tree26c3ccec78d28232e971a15bcdb58e6bd2aa1c4a /modules/bar/popouts
parentdcontent: style tweaks (diff)
downloadcaelestia-shell-de82d391be5e0880bb0161053640002179e71a29.tar.gz
caelestia-shell-de82d391be5e0880bb0161053640002179e71a29.tar.bz2
caelestia-shell-de82d391be5e0880bb0161053640002179e71a29.zip
popouts: unload when hidden
Diffstat (limited to 'modules/bar/popouts')
-rw-r--r--modules/bar/popouts/Content.qml2
-rw-r--r--modules/bar/popouts/Network.qml2
-rw-r--r--modules/bar/popouts/Wrapper.qml2
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