Show a placeholder message if there are no extensions
This commit is contained in:
@@ -19,10 +19,15 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: extView
|
id: extView
|
||||||
visible: extView.count !== 0
|
|
||||||
|
|
||||||
currentIndex: -1
|
currentIndex: -1
|
||||||
|
|
||||||
|
Kirigami.PlaceholderMessage {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
text: i18nc("@placeholder", "This room does not use any extensions")
|
||||||
|
visible: extView.count === 0
|
||||||
|
}
|
||||||
|
|
||||||
model: WidgetModel {
|
model: WidgetModel {
|
||||||
id: widgetModel
|
id: widgetModel
|
||||||
room: root.room
|
room: root.room
|
||||||
@@ -67,10 +72,4 @@ Kirigami.ScrollablePage {
|
|||||||
onClicked: Qt.openUrlExternally(url)
|
onClicked: Qt.openUrlExternally(url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.PlaceholderMessage {
|
|
||||||
text: i18nc("@info:placeholder", "There are no extensions in this room.")
|
|
||||||
visible: extView.count === 0
|
|
||||||
anchors.centerIn: parent
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user