fix: weird null error
Idk how but root somehow becomes null, probably due to async destruction
This commit is contained in:
parent
72dc5a8b93
commit
917a06f815
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue