1
0

qml: work around toolbar layout not right-aligning indicators when indicators toggle visibility

This commit is contained in:
Sander van Grieken
2023-07-19 14:14:24 +02:00
parent 8b567ae447
commit ae446377f8

View File

@@ -201,8 +201,10 @@ ApplicationWindow
}
}
LightningNetworkStatusIndicator {}
OnchainNetworkStatusIndicator {}
LightningNetworkStatusIndicator {
id: lnnsi
}
OnchainNetworkStatusIndicator { }
}
}
}
@@ -212,7 +214,11 @@ ApplicationWindow
Item {
Layout.preferredHeight: 1
Layout.topMargin: -1
Layout.preferredWidth: watchOnlyIndicator.visible ? app.width : 1
Layout.preferredWidth: watchOnlyIndicator.visible
? 1
: lnnsi.visible
? 2
: 3
}
}
}