From 79f27c81dac3c8e7090cbc00cd65b3b9f5d8247a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 17 Apr 2018 12:27:50 +0200 Subject: Derive singleAccount mode from the list of accounts --- views/accounts/qml/View.qml | 4 ++-- 1 file 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 FocusScope { id: root - //Defines whether more than one account is supported. - property bool singleAccountMode: false //Defines available account types. property var availableAccountPlugins: ["kolabnow", "imap", "maildir", "gmail"] + //Defines whether more than one account is supported. + property bool singleAccountMode: availableAccountPlugins.length == 1 Controls1.SplitView { height: parent.height -- cgit v1.2.3