diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/qml/Kube.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/components/kube/qml/Kube.qml b/components/kube/qml/Kube.qml index 3a970733..eba70c70 100644 --- a/components/kube/qml/Kube.qml +++ b/components/kube/qml/Kube.qml | |||
@@ -100,7 +100,14 @@ Controls2.ApplicationWindow { | |||
100 | Shortcut { | 100 | Shortcut { |
101 | id: syncShortcut | 101 | id: syncShortcut |
102 | sequence: StandardKey.Refresh | 102 | sequence: StandardKey.Refresh |
103 | onActivated: !!app.currentFolder ? Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder}) : Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount}) | 103 | onActivated: { |
104 | if (!!app.currentFolder) { | ||
105 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"folder": app.currentFolder}); | ||
106 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount, "type": "folder"}) | ||
107 | } else { | ||
108 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"accountId": app.currentAccount}) | ||
109 | } | ||
110 | } | ||
104 | } | 111 | } |
105 | //END Shortcuts | 112 | //END Shortcuts |
106 | 113 | ||