Bar: avoid an error when a monitor suddenly disappear (Turned off or KVM switched)
This commit is contained in:
parent
ee11c40ad3
commit
b62bdcf985
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ Variants {
|
|||
screen: modelData
|
||||
implicitHeight: Style.barHeight * scaling
|
||||
color: "transparent"
|
||||
visible: Settings.data.bar.monitors.includes(modelData.name) || (Settings.data.bar.monitors.length === 0)
|
||||
visible: modelData ? (Settings.data.bar.monitors.includes(modelData.name) || (Settings.data.bar.monitors.length === 0)) : false
|
||||
|
||||
anchors {
|
||||
top: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue