From 917a06f815e82de00b52c1a7ccebce4408e847eb Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 7 Jun 2026 17:01:22 +1000 Subject: [PATCH] fix: weird null error Idk how but root somehow becomes null, probably due to async destruction --- modules/nexus/common/AudioDeviceList.qml | 4 ++-- modules/nexus/pages/bluetooth/BluetoothPairing.qml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/nexus/common/AudioDeviceList.qml b/modules/nexus/common/AudioDeviceList.qml index 74180b54..8aacb579 100644 --- a/modules/nexus/common/AudioDeviceList.qml +++ b/modules/nexus/common/AudioDeviceList.qml @@ -38,8 +38,8 @@ ItemList { StateLayer { radius: Tokens.rounding.extraSmall - bottomLeftRadius: device.index === root.list.count - 1 ? Tokens.rounding.extraLarge : radius - bottomRightRadius: device.index === root.list.count - 1 ? Tokens.rounding.extraLarge : radius + bottomLeftRadius: device.index === root?.list.count - 1 ? Tokens.rounding.extraLarge : radius + bottomRightRadius: device.index === root?.list.count - 1 ? Tokens.rounding.extraLarge : radius onClicked: root.selected(device.modelData) } diff --git a/modules/nexus/pages/bluetooth/BluetoothPairing.qml b/modules/nexus/pages/bluetooth/BluetoothPairing.qml index f6e308ff..548bff1a 100644 --- a/modules/nexus/pages/bluetooth/BluetoothPairing.qml +++ b/modules/nexus/pages/bluetooth/BluetoothPairing.qml @@ -106,8 +106,8 @@ PageBase { StateLayer { radius: Tokens.rounding.extraSmall - bottomLeftRadius: newDevice.index === deviceList.list.count - 1 ? Tokens.rounding.extraLarge : radius - bottomRightRadius: newDevice.index === deviceList.list.count - 1 ? Tokens.rounding.extraLarge : radius + bottomLeftRadius: newDevice.index === deviceList?.list.count - 1 ? Tokens.rounding.extraLarge : radius + bottomRightRadius: newDevice.index === deviceList?.list.count - 1 ? Tokens.rounding.extraLarge : radius disabled: newDevice.modelData?.pairing ?? false onClicked: {