diff options
author | link2xt <link2xt@testrun.org> | 2021-08-28 20:23:30 +0000 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-08-28 20:23:30 +0000 |
commit | a30d37116dca5e3fb86eccb31fbfa7b6f4a97520 (patch) | |
tree | c1558ed2e205948a1d985e88d0c6562f467b93e2 | |
parent | 27f7b38d719322dd60c38df98ee76c81961252ef (diff) | |
download | kdeltachat-a30d37116dca5e3fb86eccb31fbfa7b6f4a97520.tar.gz kdeltachat-a30d37116dca5e3fb86eccb31fbfa7b6f4a97520.zip |
Create initial account if there are no accounts
-rw-r--r-- | qml/main.qml | 6 |
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) { |