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