Skip to content

Commit 92e3cef

Browse files
committed
#632 StatusBar.qml error message fix
1 parent e7f472f commit 92e3cef

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

ui/view/controls/StatusBar.qml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@ Item {
1010
y: 53
1111

1212
property var model
13-
14-
property string status: {
13+
14+
function getStatus() {
1515
if (model.isFailedStatus)
16-
"error"
16+
return "error";
1717
else if (model.isSyncInProgress)
18-
"updating"
18+
return "updating";
1919
else if (model.isOnline)
20-
"online"
20+
return "online";
2121
else
22-
"connecting"
22+
return "connecting";
2323
}
24+
25+
property string status: getStatus()
2426

2527
state: "connecting"
2628

0 commit comments

Comments
 (0)