summaryrefslogtreecommitdiffstats
path: root/framework/qml/InlineAccountSwitcher.qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml/InlineAccountSwitcher.qml')
-rw-r--r--framework/qml/InlineAccountSwitcher.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/qml/InlineAccountSwitcher.qml b/framework/qml/InlineAccountSwitcher.qml
index 2af1a455..e54049be 100644
--- a/framework/qml/InlineAccountSwitcher.qml
+++ b/framework/qml/InlineAccountSwitcher.qml
@@ -27,6 +27,8 @@ FocusScope {
27 Kube.Fabric.postMessage(Kube.Messages.accountSelection, {accountId: currentAccount}); 27 Kube.Fabric.postMessage(Kube.Messages.accountSelection, {accountId: currentAccount});
28 } 28 }
29 29
30 property var currentFolder
31
30 ColumnLayout { 32 ColumnLayout {
31 id: layout 33 id: layout
32 anchors.fill: parent 34 anchors.fill: parent
@@ -95,7 +97,8 @@ FocusScope {
95 onActivated: { 97 onActivated: {
96 if (visible) { 98 if (visible) {
97 Kube.Fabric.postMessage(Kube.Messages.folderSelection, {"folder": model.data(index, Kube.FolderListModel.DomainObject), 99 Kube.Fabric.postMessage(Kube.Messages.folderSelection, {"folder": model.data(index, Kube.FolderListModel.DomainObject),
98 "trash": model.data(index, Kube.FolderListModel.Trash)}); 100 "trash": model.data(index, Kube.FolderListModel.Trash)})
101 root.currentFolder = model.data(index, Kube.FolderListModel.DomainObject)
99 } 102 }
100 } 103 }
101 } 104 }