Skip to content

Commit

Permalink
#632 StatusBar.qml error message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
echoby committed May 13, 2019
1 parent e7f472f commit 92e3cef
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ui/view/controls/StatusBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 92e3cef

Please sign in to comment.