From a0a371214f8fe11dc71efdf1c804185f65964aca Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 23 Jul 2017 17:00:35 +0200 Subject: Don't display "Error" when initially disconnected. --- framework/qml/StatusBar.qml | 4 ++-- 1 file 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 { property string accountId: "" property string currentFolderName: "" property string currentFolderId: "" - property string errorText: "Error" + property string errorText: "" visible: false onCurrentFolderIdChanged: root.currentFolderName = "" @@ -51,7 +51,7 @@ Item { name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus PropertyChanges { target: root; visible: true } PropertyChanges { target: statusText; text: qsTr("Disconnected"); visible: true } - PropertyChanges { target: descriptionText; visible: true } + PropertyChanges { target: descriptionText; visible: root.errorText != "" } }, State { name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus -- cgit v1.2.3