RoomPane flickable: ignore unimplemented views

This commit is contained in:
miruka 2019-12-13 18:01:46 -04:00
parent c6295225fb
commit c5ed3be031

View File

@ -49,7 +49,9 @@ HDrawer {
) )
autoExclusive: true autoExclusive: true
checked: swipeView.currentIndex === index checked: swipeView.currentIndex === 0 && index === 0 ||
swipeView.currentIndex === 1 && index === 4
enabled: ["members", "settings"].includes(modelData) enabled: ["members", "settings"].includes(modelData)
onClicked: swipeView.currentIndex = index onClicked: swipeView.currentIndex = index
@ -69,9 +71,6 @@ HDrawer {
Layout.fillHeight: true Layout.fillHeight: true
MemberView {} MemberView {}
Item {}
Item {}
Item {}
SettingsView { fillAvailableHeight: true } SettingsView { fillAvailableHeight: true }
} }
} }