Fix loading state detection in devices page
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
@@ -86,7 +86,7 @@ Kirigami.ScrollablePage {
|
||||
}
|
||||
}
|
||||
|
||||
property Connections connection: Connections {
|
||||
Connections {
|
||||
target: Controller
|
||||
function onConnectionAdded() {
|
||||
if (pageStack.layers.depth > 2)
|
||||
|
||||
@@ -20,7 +20,7 @@ Kirigami.ScrollablePage {
|
||||
anchors.fill: parent
|
||||
|
||||
Kirigami.PlaceholderMessage {
|
||||
visible: parent.model.count === 0 // We can assume 0 means loading since there is at least one device
|
||||
visible: parent.count === 0 // We can assume 0 means loading since there is at least one device
|
||||
anchors.centerIn: parent
|
||||
text: i18n("Loading…")
|
||||
Controls.BusyIndicator {
|
||||
|
||||
1
res.qrc
1
res.qrc
@@ -80,6 +80,7 @@
|
||||
<file>imports/NeoChat/Settings/Emoticons.qml</file>
|
||||
<file>imports/NeoChat/Settings/AppearanceSettingsPage.qml</file>
|
||||
<file>imports/NeoChat/Settings/AccountsPage.qml</file>
|
||||
<file>imports/NeoChat/Settings/AccountEditorPage.qml</file>
|
||||
<file>imports/NeoChat/Settings/DevicesPage.qml</file>
|
||||
<file>imports/NeoChat/Settings/About.qml</file>
|
||||
<file>imports/NeoChat/Settings/SonnetConfigPage.qml</file>
|
||||
|
||||
Reference in New Issue
Block a user