Fix room pane header buttons onClicked
This commit is contained in:
parent
373ce6b925
commit
73f14cac8e
|
@ -45,9 +45,9 @@ MultiviewPane {
|
||||||
enabled: ["back", "members", "settings"].includes(modelData)
|
enabled: ["back", "members", "settings"].includes(modelData)
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
modelData === "back" ?
|
modelData === "back" ? roomPane.toggleFocus() :
|
||||||
roomPane.toggleFocus() :
|
modelData === "members" ? swipeView.currentIndex = 0 :
|
||||||
swipeView.currentIndex = Math.min(index, 1)
|
swipeView.currentIndex = 1
|
||||||
|
|
||||||
Behavior on width {
|
Behavior on width {
|
||||||
enabled: modelData === "back"
|
enabled: modelData === "back"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user