Compare commits
1 commit
master
...
work/gener
Author | SHA1 | Date | |
---|---|---|---|
|
93769a1161 |
1 changed files with 5 additions and 1 deletions
|
@ -21,6 +21,10 @@ PlasmoidItem
|
||||||
|| plasmoid.location == PlasmaCore.Types.BottomEdge
|
|| plasmoid.location == PlasmaCore.Types.BottomEdge
|
||||||
|| plasmoid.location == PlasmaCore.Types.LeftEdge)
|
|| plasmoid.location == PlasmaCore.Types.LeftEdge)
|
||||||
|
|
||||||
|
DevicesModel {
|
||||||
|
id: allDevicesModel
|
||||||
|
}
|
||||||
|
|
||||||
DevicesModel {
|
DevicesModel {
|
||||||
id: connectDeviceModel
|
id: connectDeviceModel
|
||||||
displayFilter: DevicesModel.Paired | DevicesModel.Reachable
|
displayFilter: DevicesModel.Paired | DevicesModel.Reachable
|
||||||
|
@ -44,7 +48,7 @@ PlasmoidItem
|
||||||
Binding {
|
Binding {
|
||||||
target: plasmoid
|
target: plasmoid
|
||||||
property: "status"
|
property: "status"
|
||||||
value: (connectDeviceModel.count > 0) ? PlasmaCore.Types.ActiveStatus : PlasmaCore.Types.PassiveStatus
|
value: (connectDeviceModel.count > 0) ? PlasmaCore.Types.ActiveStatus : ((allDevicesModel.count === 0) ? PlasmaCore.Types.PassiveStatus : PlasmaCore.Types.HiddenStatus)
|
||||||
}
|
}
|
||||||
|
|
||||||
fullRepresentation: FullRepresentation {
|
fullRepresentation: FullRepresentation {
|
||||||
|
|
Loading…
Reference in a new issue