diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-17 12:27:50 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-17 12:27:50 +0200 |
commit | 79f27c81dac3c8e7090cbc00cd65b3b9f5d8247a (patch) | |
tree | fe47e890b267e78de714e9400a3228aff3995d01 /views | |
parent | ccce242c848594643c5bebc78cf7d0452b311ebf (diff) | |
download | kube-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.qml | 4 |
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 | ||
26 | FocusScope { | 26 | FocusScope { |
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 |