summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-20 12:33:58 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-20 12:33:58 +0200
commit433bdc462fcd8fd8fd6737b37b4a2f8c4fcde0ac (patch)
tree44af0242a1fd4343b8a59970459f16d95bd1fa52 /framework
parentbe511a719851c14c5ea5c1479ed2d814fbd3a8e6 (diff)
downloadkube-433bdc462fcd8fd8fd6737b37b4a2f8c4fcde0ac.tar.gz
kube-433bdc462fcd8fd8fd6737b37b4a2f8c4fcde0ac.zip
Dont refrence outside root in statusbar
Diffstat (limited to 'framework')
-rw-r--r--framework/qml/StatusBar.qml8
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 ]