popouts: unload when hidden
This commit is contained in:
parent
a23bb48c24
commit
de82d391be
3 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ Item {
|
||||||
|
|
||||||
Popout {
|
Popout {
|
||||||
name: "network"
|
name: "network"
|
||||||
source: "Network.qml"
|
sourceComponent: Network {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Popout {
|
Popout {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue