Add loading indicator while loading conversations
This commit is contained in:
parent
f65737da21
commit
9c91042441
1 changed files with 12 additions and 1 deletions
|
@ -33,7 +33,7 @@ Kirigami.ScrollablePage
|
||||||
id: page
|
id: page
|
||||||
ToolTip {
|
ToolTip {
|
||||||
id: noDevicesWarning
|
id: noDevicesWarning
|
||||||
visible: !devicesCombo.enabled
|
visible: !page.deviceConnected
|
||||||
timeout: -1
|
timeout: -1
|
||||||
text: "⚠️ " + i18n("No devices available") + " ⚠️"
|
text: "⚠️ " + i18n("No devices available") + " ⚠️"
|
||||||
|
|
||||||
|
@ -72,6 +72,17 @@ Kirigami.ScrollablePage
|
||||||
Kirigami.AboutPage {}
|
Kirigami.AboutPage {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
id: loadingMessage
|
||||||
|
visible: deviceConnected && view.count == 0
|
||||||
|
anchors.centerIn: parent
|
||||||
|
|
||||||
|
BusyIndicator {
|
||||||
|
running: loadingMessage.visible
|
||||||
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
property string initialMessage
|
property string initialMessage
|
||||||
property string initialDevice
|
property string initialDevice
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue