internal: fix null warnings
This commit is contained in:
parent
ff901d825b
commit
d1ad000a8e
2 changed files with 3 additions and 3 deletions
|
|
@ -187,12 +187,12 @@ StyledRect {
|
||||||
required property BluetoothDevice modelData
|
required property BluetoothDevice modelData
|
||||||
|
|
||||||
animate: true
|
animate: true
|
||||||
text: Icons.getBluetoothIcon(modelData.icon)
|
text: Icons.getBluetoothIcon(modelData?.icon)
|
||||||
color: root.colour
|
color: root.colour
|
||||||
fill: 1
|
fill: 1
|
||||||
|
|
||||||
SequentialAnimation on opacity {
|
SequentialAnimation on opacity {
|
||||||
running: device.modelData.state !== BluetoothDeviceState.Connected
|
running: device.modelData?.state !== BluetoothDeviceState.Connected
|
||||||
alwaysRunToEnd: true
|
alwaysRunToEnd: true
|
||||||
loops: Animation.Infinite
|
loops: Animation.Infinite
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ CustomMouseArea {
|
||||||
if (!utilitiesShortcutActive)
|
if (!utilitiesShortcutActive)
|
||||||
visibilities.utilities = false;
|
visibilities.utilities = false;
|
||||||
|
|
||||||
if (!popouts.currentName.startsWith("traymenu") || popouts.current.depth <= 1)
|
if (!popouts.currentName.startsWith("traymenu") || popouts.current?.depth <= 1)
|
||||||
popouts.hasCurrent = false;
|
popouts.hasCurrent = false;
|
||||||
|
|
||||||
if (Config.bar.showOnHover)
|
if (Config.bar.showOnHover)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue