Fix room pane header buttons onClicked

This commit is contained in:
miruka 2020-03-21 15:02:37 -04:00
parent 373ce6b925
commit 73f14cac8e

View File

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