popouts: unload when hidden

This commit is contained in:
2 * r + 2 * t 2025-07-28 23:12:58 +10:00
parent a23bb48c24
commit de82d391be
3 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ Item {
Popout {
name: "network"
source: "Network.qml"
sourceComponent: Network {}
}
Popout {

View file

@ -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

View file

@ -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