Remove power level apply/cancel button texts
Lazy fix for the layout problem
This commit is contained in:
parent
78b16ae22c
commit
03af1da1d4
1
TODO.md
1
TODO.md
|
@ -4,7 +4,6 @@
|
|||
|
||||
- fix members not synced bug
|
||||
- fix local unread counters order
|
||||
- fix power level control button layout when apply button is loading
|
||||
|
||||
- publish room or alias control
|
||||
|
||||
|
|
|
@ -219,11 +219,10 @@ HListView {
|
|||
}
|
||||
}
|
||||
|
||||
AutoDirectionLayout {
|
||||
HRowLayout {
|
||||
visible: scale > 0
|
||||
id: buttonsLayout
|
||||
scale: powerLevel.item.changed ? 1 : 0
|
||||
rowSpacing: powerLevel.spacing
|
||||
|
||||
Layout.preferredWidth: parent.width
|
||||
Layout.preferredHeight: implicitHeight * scale
|
||||
|
@ -237,6 +236,7 @@ HListView {
|
|||
id: applyButton
|
||||
enabled: ! powerLevel.item.fieldOverMaximum
|
||||
loading: setPowerFuture !== null
|
||||
text: ""
|
||||
onClicked: {
|
||||
setPowerFuture = py.callClientCoro(
|
||||
userId,
|
||||
|
@ -251,6 +251,7 @@ HListView {
|
|||
}
|
||||
|
||||
CancelButton {
|
||||
text: ""
|
||||
onClicked: {
|
||||
setPowerFuture.cancel()
|
||||
setPowerFuture = null
|
||||
|
|
Loading…
Reference in New Issue
Block a user