Remove power level apply/cancel button texts

Lazy fix for the layout problem
This commit is contained in:
miruka 2020-07-17 06:24:03 -04:00
parent 78b16ae22c
commit 03af1da1d4
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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