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 { Popout {
name: "network" name: "network"
source: "Network.qml" sourceComponent: Network {}
} }
Popout { Popout {

View file

@ -49,7 +49,7 @@ ColumnLayout {
RowLayout { RowLayout {
id: networkItem id: networkItem
required property var modelData required property Network.AccessPoint modelData
readonly property bool isConnecting: root.connectingToSsid === modelData.ssid readonly property bool isConnecting: root.connectingToSsid === modelData.ssid
readonly property bool loading: networkItem.isConnecting readonly property bool loading: networkItem.isConnecting

View file

@ -72,7 +72,7 @@ Item {
Comp { Comp {
id: content id: content
shouldBeActive: !root.detachedMode shouldBeActive: root.hasCurrent && !root.detachedMode
asynchronous: true asynchronous: true
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter