summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-23 17:00:35 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-23 17:00:35 +0200
commita0a371214f8fe11dc71efdf1c804185f65964aca (patch)
tree4484b4b2a752dfb48f204ae48a39669c59b54da2
parent7eddc26d24defb3444e21adfbd43f8e568be576d (diff)
downloadkube-a0a371214f8fe11dc71efdf1c804185f65964aca.tar.gz
kube-a0a371214f8fe11dc71efdf1c804185f65964aca.zip
Don't display "Error" when initially disconnected.
-rw-r--r--framework/qml/StatusBar.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/qml/StatusBar.qml b/framework/qml/StatusBar.qml
index 52fcfbdc..bc98843c 100644
--- a/framework/qml/StatusBar.qml
+++ b/framework/qml/StatusBar.qml
@@ -24,7 +24,7 @@ Item {
24 property string accountId: "" 24 property string accountId: ""
25 property string currentFolderName: "" 25 property string currentFolderName: ""
26 property string currentFolderId: "" 26 property string currentFolderId: ""
27 property string errorText: "Error" 27 property string errorText: ""
28 visible: false 28 visible: false
29 29
30 onCurrentFolderIdChanged: root.currentFolderName = "" 30 onCurrentFolderIdChanged: root.currentFolderName = ""
@@ -51,7 +51,7 @@ Item {
51 name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus 51 name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus
52 PropertyChanges { target: root; visible: true } 52 PropertyChanges { target: root; visible: true }
53 PropertyChanges { target: statusText; text: qsTr("Disconnected"); visible: true } 53 PropertyChanges { target: statusText; text: qsTr("Disconnected"); visible: true }
54 PropertyChanges { target: descriptionText; visible: true } 54 PropertyChanges { target: descriptionText; visible: root.errorText != "" }
55 }, 55 },
56 State { 56 State {
57 name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus 57 name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus