summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/kube/qml/Kube.qml3
-rw-r--r--framework/qml/View.qml4
2 files changed, 7 insertions, 0 deletions
diff --git a/components/kube/qml/Kube.qml b/components/kube/qml/Kube.qml
index afc7c83f..17e77ebe 100644
--- a/components/kube/qml/Kube.qml
+++ b/components/kube/qml/Kube.qml
@@ -104,6 +104,9 @@ Controls2.ApplicationWindow {
104 id: syncShortcut 104 id: syncShortcut
105 sequence: StandardKey.Refresh 105 sequence: StandardKey.Refresh
106 onActivated: { 106 onActivated: {
107 if (kubeViews.currentItem && kubeViews.currentItem.refresh) {
108 kubeViews.currentItem.refresh()
109 }
107 if (!!app.currentFolder) { 110 if (!!app.currentFolder) {
108 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder}); 111 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder});
109 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount, "type": "folder"}) 112 Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount, "type": "folder"})
diff --git a/framework/qml/View.qml b/framework/qml/View.qml
index 64524999..5df76cb6 100644
--- a/framework/qml/View.qml
+++ b/framework/qml/View.qml
@@ -64,10 +64,14 @@ FocusScope {
64 64
65 property bool __aborted: false 65 property bool __aborted: false
66 66
67 //This signal will be emitted to refresh the views contents. Fetch data in here.
68 signal refresh()
69
67 //This signal will be emitted once all initial properties have been set and the view is ready to load 70 //This signal will be emitted once all initial properties have been set and the view is ready to load
68 signal setup() 71 signal setup()
69 StackView.onActivated: { 72 StackView.onActivated: {
70 root.setup() 73 root.setup()
74 root.refresh()
71 } 75 }
72 76
73 StackView.onDeactivated: { 77 StackView.onDeactivated: {