summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-17 12:27:50 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-17 12:27:50 +0200
commit79f27c81dac3c8e7090cbc00cd65b3b9f5d8247a (patch)
treefe47e890b267e78de714e9400a3228aff3995d01 /views
parentccce242c848594643c5bebc78cf7d0452b311ebf (diff)
downloadkube-79f27c81dac3c8e7090cbc00cd65b3b9f5d8247a.tar.gz
kube-79f27c81dac3c8e7090cbc00cd65b3b9f5d8247a.zip
Derive singleAccount mode from the list of accounts
Diffstat (limited to 'views')
-rw-r--r--views/accounts/qml/View.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/accounts/qml/View.qml b/views/accounts/qml/View.qml
index 84ba2ef1..0bdab979 100644
--- a/views/accounts/qml/View.qml
+++ b/views/accounts/qml/View.qml
@@ -25,10 +25,10 @@ import org.kube.components.accounts 1.0 as KubeAccounts
25 25
26FocusScope { 26FocusScope {
27 id: root 27 id: root
28 //Defines whether more than one account is supported.
29 property bool singleAccountMode: false
30 //Defines available account types. 28 //Defines available account types.
31 property var availableAccountPlugins: ["kolabnow", "imap", "maildir", "gmail"] 29 property var availableAccountPlugins: ["kolabnow", "imap", "maildir", "gmail"]
30 //Defines whether more than one account is supported.
31 property bool singleAccountMode: availableAccountPlugins.length == 1
32 32
33 Controls1.SplitView { 33 Controls1.SplitView {
34 height: parent.height 34 height: parent.height