From 6e4fadcf116f4c49832960cb1fc6b2a76937b0a1 Mon Sep 17 00:00:00 2001
From: Ming Rui Zhang <mingrui.zhang@savoirfairelinux.com>
Date: Thu, 15 Jul 2021 15:39:37 -0400
Subject: [PATCH] accountComboBox: provide initial value for account status

If the account is initially disabled, the presense indicator
will still show the green color since the initial value is missed.

Change-Id: Ic580e485d4a73867789ef3774045a6939acbae4a
---
 src/mainview/components/AccountComboBox.qml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mainview/components/AccountComboBox.qml b/src/mainview/components/AccountComboBox.qml
index 6e41ae7b7..5d22252b3 100644
--- a/src/mainview/components/AccountComboBox.qml
+++ b/src/mainview/components/AccountComboBox.qml
@@ -132,6 +132,9 @@ Label {
 
             imageId: LRCInstance.currentAccountId
             mode: Avatar.Mode.Account
+
+            presenceStatus: AccountListModel.data(
+                                AccountListModel.index(0, 0), AccountList.Status)
         }
 
         ColumnLayout {
-- 
GitLab