Fix loading state detection in devices page

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan
2022-07-17 10:01:33 +02:00
parent 6c6e408497
commit 3c7e85fbbf
3 changed files with 3 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ Kirigami.ScrollablePage {
}
}
property Connections connection: Connections {
Connections {
target: Controller
function onConnectionAdded() {
if (pageStack.layers.depth > 2)

View File

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

View File

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