Track online status per connection

This commit is contained in:
Tobias Fella
2023-11-05 22:49:36 +01:00
parent 59153be006
commit 4ef44b8e93
5 changed files with 34 additions and 30 deletions

View File

@@ -94,9 +94,9 @@ Kirigami.Page {
}
Connections {
target: Controller
target: root.connection
function onIsOnlineChanged() {
if (!Controller.isOnline) {
if (!root.connection.isOnline) {
banner.text = i18n("NeoChat is offline. Please check your network connection.");
banner.visible = true;
banner.type = Kirigami.MessageType.Error;