internal: fix null warnings

This commit is contained in:
2 * r + 2 * t 2025-09-15 22:00:47 +10:00
parent ff901d825b
commit d1ad000a8e
2 changed files with 3 additions and 3 deletions

View file

@ -187,12 +187,12 @@ StyledRect {
required property BluetoothDevice modelData
animate: true
text: Icons.getBluetoothIcon(modelData.icon)
text: Icons.getBluetoothIcon(modelData?.icon)
color: root.colour
fill: 1
SequentialAnimation on opacity {
running: device.modelData.state !== BluetoothDeviceState.Connected
running: device.modelData?.state !== BluetoothDeviceState.Connected
alwaysRunToEnd: true
loops: Animation.Infinite

View file

@ -74,7 +74,7 @@ CustomMouseArea {
if (!utilitiesShortcutActive)
visibilities.utilities = false;
if (!popouts.currentName.startsWith("traymenu") || popouts.current.depth <= 1)
if (!popouts.currentName.startsWith("traymenu") || popouts.current?.depth <= 1)
popouts.hasCurrent = false;
if (Config.bar.showOnHover)