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 ++-- modules/drawers/Interactions.qml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index 337b0ff..c76ce82 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -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) -- cgit v1.2.3-freya