summaryrefslogtreecommitdiffstats
path: root/framework/qml/InlineAccountSwitcher.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-17 23:13:41 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-17 23:13:41 +0200
commit0ad2650fd4084c7c7518b80d0f2d3f1275d89f28 (patch)
treebc6b08c002cf3a9280500a8820e258ac0ce2a975 /framework/qml/InlineAccountSwitcher.qml
parent8bac76742270829a0e8753eb53a1cc7384dda323 (diff)
downloadkube-0ad2650fd4084c7c7518b80d0f2d3f1275d89f28.tar.gz
kube-0ad2650fd4084c7c7518b80d0f2d3f1275d89f28.zip
Always select the first index (INBOX) in the folderlist initially.
Diffstat (limited to 'framework/qml/InlineAccountSwitcher.qml')
-rw-r--r--framework/qml/InlineAccountSwitcher.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/qml/InlineAccountSwitcher.qml b/framework/qml/InlineAccountSwitcher.qml
index b7f69588..2af1a455 100644
--- a/framework/qml/InlineAccountSwitcher.qml
+++ b/framework/qml/InlineAccountSwitcher.qml
@@ -86,6 +86,18 @@ FocusScope {
86 86
87 accountId: currentData.accountId 87 accountId: currentData.accountId
88 visible: isCurrent 88 visible: isCurrent
89 onVisibleChanged: {
90 if (visible) {
91 selectRootIndex()
92 }
93 }
94
95 onActivated: {
96 if (visible) {
97 Kube.Fabric.postMessage(Kube.Messages.folderSelection, {"folder": model.data(index, Kube.FolderListModel.DomainObject),
98 "trash": model.data(index, Kube.FolderListModel.Trash)});
99 }
100 }
89 } 101 }
90 } 102 }
91 } 103 }