From d1ad000a8e5d0dad5fdfedc2558d6a3736a5bd63 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 15 Sep 2025 22:00:47 +1000 Subject: internal: fix null warnings --- modules/bar/components/StatusIcons.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/bar/components') diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml index 839a61a..c1ad697 100644 --- a/modules/bar/components/StatusIcons.qml +++ b/modules/bar/components/StatusIcons.qml @@ -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 -- cgit v1.2.3-freya