From 92e3cef4953822ee97739274d6aed01c123559b2 Mon Sep 17 00:00:00 2001 From: zavarza Date: Mon, 13 May 2019 13:14:54 +0300 Subject: [PATCH] #632 StatusBar.qml error message fix --- ui/view/controls/StatusBar.qml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ui/view/controls/StatusBar.qml b/ui/view/controls/StatusBar.qml index a58160ba7..4b725740a 100644 --- a/ui/view/controls/StatusBar.qml +++ b/ui/view/controls/StatusBar.qml @@ -10,17 +10,19 @@ Item { y: 53 property var model - - property string status: { + + function getStatus() { if (model.isFailedStatus) - "error" + return "error"; else if (model.isSyncInProgress) - "updating" + return "updating"; else if (model.isOnline) - "online" + return "online"; else - "connecting" + return "connecting"; } + + property string status: getStatus() state: "connecting"