summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/bar/components/StatusIcons.qml4
-rw-r--r--modules/drawers/Interactions.qml2
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)