move network/bluetooth refresh + active tracking into applets, fix dock parent.expanded
This commit is contained in:
parent
c96856581d
commit
02910957f1
7 changed files with 11 additions and 9 deletions
|
|
@ -5,6 +5,9 @@ Column {
|
|||
id: root
|
||||
|
||||
required property color accentColor
|
||||
property bool active: true
|
||||
onActiveChanged: if (active)
|
||||
S.BluetoothService.refresh()
|
||||
|
||||
Repeater {
|
||||
model: S.BluetoothService.devices
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@ Column {
|
|||
id: root
|
||||
|
||||
required property color accentColor
|
||||
property bool active: true
|
||||
onActiveChanged: if (active)
|
||||
S.NetworkService.refresh()
|
||||
|
||||
Repeater {
|
||||
model: S.NetworkService.networks
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ PanelWindow {
|
|||
devices: S.SystemStats.tempDevices
|
||||
accentColor: root._accent
|
||||
deviceFilter: S.Modules.temperature.device || ""
|
||||
active: parent.parent.expanded
|
||||
active: parent.expanded
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -296,6 +296,7 @@ PanelWindow {
|
|||
C.NetworkApplet {
|
||||
width: parent.width
|
||||
accentColor: root._accent
|
||||
active: parent.expanded
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -310,6 +311,7 @@ PanelWindow {
|
|||
C.BluetoothApplet {
|
||||
width: parent.width
|
||||
accentColor: root._accent
|
||||
active: parent.expanded
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -89,9 +89,10 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
// Content area
|
||||
// Content area - expanded propagated so children can bind `active: parent.expanded`
|
||||
Column {
|
||||
id: _contentColumn
|
||||
property bool expanded: root.expanded
|
||||
anchors.top: _header.bottom
|
||||
anchors.topMargin: 4
|
||||
width: parent.width
|
||||
|
|
|
|||
|
|
@ -54,9 +54,6 @@ M.BarModule {
|
|||
}
|
||||
}
|
||||
|
||||
on_ShowPanelChanged: if (_showPanel)
|
||||
S.BluetoothService.refresh()
|
||||
|
||||
Connections {
|
||||
target: S.BluetoothService
|
||||
function onDevicesChanged() {
|
||||
|
|
|
|||
|
|
@ -56,9 +56,6 @@ M.BarModule {
|
|||
|
||||
readonly property string state: S.NetworkService.state
|
||||
|
||||
on_ShowPanelChanged: if (_showPanel)
|
||||
S.NetworkService.refresh()
|
||||
|
||||
Connections {
|
||||
target: S.NetworkService
|
||||
function onNetworksChanged() {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ shell/applets/PowerApplet.qml: Unqualified access [unqualified]
|
|||
shell/applets/TemperatureApplet.qml: Unqualified access [unqualified]
|
||||
shell/applets/VolumeApplet.qml: Unqualified access [unqualified]
|
||||
shell/dock/AppletDock.qml: Could not find property "top". [missing-property]
|
||||
shell/dock/AppletDock.qml: Member "expanded" not found on type "QQuickItem" [missing-property]
|
||||
shell/dock/AppletDock.qml: Type margins is used but it is not resolved [unresolved-type]
|
||||
shell/dock/AppletDock.qml: Type PanelWindow is not creatable. [uncreatable-type]
|
||||
shell/dock/AppletDock.qml: unknown grouped property scope margins. [unqualified]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue