Commit 9a76a757 authored by LNJ's avatar LNJ Committed by Jonah Brüchert

RosterPage: Display if offline in title

First, I only added this for the "Connecting..." state, but I noticed that you
often can't distingush if you're online or not, so from now on it'll also
display if you're offline. I didn't add the online status, because it's the
default case; the functionality is not restricted.
parent d327ab07
......@@ -36,8 +36,11 @@ import io.github.kaidanim 1.0
import "elements"
Kirigami.ScrollablePage {
title: kaidan.connectionState === Enums.StateConnecting ?
qsTr("Connecting…") : qsTr("Contacts")
title: {
kaidan.connectionState === Enums.StateConnecting ? qsTr("Connecting…") :
kaidan.connectionState === Enums.StateDisconnected ? qsTr("Offline") :
qsTr("Contacts")
}
RosterAddContactSheet {
id: addContactSheet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment