aboutsummaryrefslogtreecommitdiff
path: root/qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/main.qml')
-rw-r--r--qml/main.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/qml/main.qml b/qml/main.qml
index 7a91980..e095f58 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -60,6 +60,12 @@ Kirigami.ApplicationWindow {
eventEmitter = dcAccounts.getEventEmitter()
eventEmitter.start();
+ // Create an account if there is none.
+ if (dcAccounts.getSelectedAccount() == null) {
+ console.log("Adding first account");
+ dcAccounts.addAccount();
+ }
+
// Open selected account if there is one.
let selectedAccount = dcAccounts.getSelectedAccount();
if (selectedAccount) {