summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/mail/contents/ui/Mail.qml4
-rw-r--r--framework/accounts/accountsmodel.cpp4
2 files changed, 7 insertions, 1 deletions
diff --git a/components/mail/contents/ui/Mail.qml b/components/mail/contents/ui/Mail.qml
index 1bdbc5ed..04820d54 100644
--- a/components/mail/contents/ui/Mail.qml
+++ b/components/mail/contents/ui/Mail.qml
@@ -308,6 +308,10 @@ Controls2.ApplicationWindow {
308 State { 308 State {
309 name: "checkmark"; when: model.status == KubeAccountsFramework.AccountsModel.ConnectedStatus 309 name: "checkmark"; when: model.status == KubeAccountsFramework.AccountsModel.ConnectedStatus
310 PropertyChanges { target: statusIcon; iconName: KubeTheme.Icons.connected; visible: true } 310 PropertyChanges { target: statusIcon; iconName: KubeTheme.Icons.connected; visible: true }
311 },
312 State {
313 name: "disconnected"; when: model.status == KubeAccountsFramework.AccountsModel.OfflineStatus
314 PropertyChanges { target: statusIcon; iconName: KubeTheme.Icons.noNetworkConnection; visible: true }
311 } 315 }
312 ] 316 ]
313 } 317 }
diff --git a/framework/accounts/accountsmodel.cpp b/framework/accounts/accountsmodel.cpp
index d999bdbd..f98e8ca3 100644
--- a/framework/accounts/accountsmodel.cpp
+++ b/framework/accounts/accountsmodel.cpp
@@ -68,8 +68,10 @@ QVariant AccountsModel::data(const QModelIndex &idx, int role) const
68 return BusyStatus; 68 return BusyStatus;
69 case Sink::ApplicationDomain::ConnectedStatus: 69 case Sink::ApplicationDomain::ConnectedStatus:
70 return ConnectedStatus; 70 return ConnectedStatus;
71 case Sink::ApplicationDomain::OfflineStatus:
72 return OfflineStatus;
71 } 73 }
72 return OfflineStatus; 74 return NoStatus;
73 } 75 }
74 return QIdentityProxyModel::data(idx, role); 76 return QIdentityProxyModel::data(idx, role);
75} 77}