diff options
Diffstat (limited to 'framework/qml/StatusBar.qml')
-rw-r--r-- | framework/qml/StatusBar.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/qml/StatusBar.qml b/framework/qml/StatusBar.qml index ea2b4db5..35ef46a8 100644 --- a/framework/qml/StatusBar.qml +++ b/framework/qml/StatusBar.qml | |||
@@ -25,6 +25,7 @@ Item { | |||
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: "Error" |
28 | visible: false | ||
28 | 29 | ||
29 | onCurrentFolderIdChanged: root.currentFolderName = "" | 30 | onCurrentFolderIdChanged: root.currentFolderName = "" |
30 | Kube.FolderListModel { | 31 | Kube.FolderListModel { |
@@ -45,23 +46,22 @@ Item { | |||
45 | Kube.Label { | 46 | Kube.Label { |
46 | id: statusText | 47 | id: statusText |
47 | anchors.horizontalCenter: parent.horizontalCenter | 48 | anchors.horizontalCenter: parent.horizontalCenter |
48 | visible: false | ||
49 | color: Kube.Colors.highlightedTextColor | 49 | color: Kube.Colors.highlightedTextColor |
50 | states: [ | 50 | states: [ |
51 | State { | 51 | State { |
52 | name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus | 52 | name: "disconnected"; when: model.status == Kube.AccountsModel.OfflineStatus |
53 | PropertyChanges { target: statusBar; visible: true } | 53 | PropertyChanges { target: root; visible: true } |
54 | PropertyChanges { target: statusText; text: "Disconnected"; visible: true } | 54 | PropertyChanges { target: statusText; text: "Disconnected"; visible: true } |
55 | }, | 55 | }, |
56 | State { | 56 | State { |
57 | name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus | 57 | name: "busy"; when: model.status == Kube.AccountsModel.BusyStatus |
58 | PropertyChanges { target: statusBar; visible: true } | 58 | PropertyChanges { target: root; visible: true } |
59 | PropertyChanges { target: statusText; text: root.currentFolderName.length > 0 ? "Synchronizing " + root.currentFolderName: "Synchronizing..."; visible: true } | 59 | PropertyChanges { target: statusText; text: root.currentFolderName.length > 0 ? "Synchronizing " + root.currentFolderName: "Synchronizing..."; visible: true } |
60 | PropertyChanges { target: progressBar; visible: true } | 60 | PropertyChanges { target: progressBar; visible: true } |
61 | }, | 61 | }, |
62 | State { | 62 | State { |
63 | name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus | 63 | name: "error"; when: model.status == Kube.AccountsModel.ErrorStatus |
64 | PropertyChanges { target: statusBar; visible: true } | 64 | PropertyChanges { target: root; visible: true } |
65 | PropertyChanges { target: statusText; text: root.errorText; visible: true } | 65 | PropertyChanges { target: statusText; text: root.errorText; visible: true } |
66 | } | 66 | } |
67 | ] | 67 | ] |