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"