Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamila <hello@camila.codes>2021-04-19 18:19:04 +0300
committerCamila (Rebase PR Action) <hello@camila.codes>2021-05-25 09:55:52 +0300
commit671b099c98bc1cc94f643776c3040573f8ac62e5 (patch)
tree489d624672719b1f0f6cfa05679a909a34c7f784 /src/gui/tray/UserLine.qml
parente3b96ddc85d8673f7b5e3c8bdd6294538b702bd4 (diff)
Check if the user is connected and if the server supports user status.
Signed-off-by: Camila <hello@camila.codes>
Diffstat (limited to 'src/gui/tray/UserLine.qml')
-rw-r--r--src/gui/tray/UserLine.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/tray/UserLine.qml b/src/gui/tray/UserLine.qml
index ce752fef1..dd2ddb722 100644
--- a/src/gui/tray/UserLine.qml
+++ b/src/gui/tray/UserLine.qml
@@ -72,6 +72,8 @@ MenuItem {
Layout.preferredWidth: (userLineLayout.height -16)
Rectangle {
id: accountStatusIndicatorBackground
+ visible: model.isConnected &&
+ model.serverUserStatus
width: accountStatusIndicator.sourceSize.width + 2
height: width
anchors.bottom: accountAvatar.bottom
@@ -81,7 +83,9 @@ MenuItem {
}
Image {
id: accountStatusIndicator
- source: model.statusIcon
+ visible: model.isConnected &&
+ model.serverUserStatus
+ source: model.statusIcon
cache: false
x: accountStatusIndicatorBackground.x + 1
y: accountStatusIndicatorBackground.y + 1
@@ -109,6 +113,8 @@ MenuItem {
}
Label {
id: userStatusMessage
+ visible: model.isConnected
+ && model.serverUserStatus
width: 128
text: statusMessage
elide: Text.ElideRight
@@ -117,6 +123,7 @@ MenuItem {
}
Label {
id: accountServer
+ visible: !userStatusMessage.visible
width: 128
text: server
elide: Text.ElideRight