Commit 55c1b0a4 authored by Ming Rui Zhang's avatar Ming Rui Zhang

main: show maximized mainwindow only when accounts exist

Change-Id: Iefc512728721b6cc760273bbfedf0b37aed036ca
parent a801936c
......@@ -279,6 +279,7 @@ main(int argc, char* argv[])
QSettings settings("jami.net", "Jami");
if (not startMinimized) {
if (settings.value(SettingsKey::hasRun) == 0) {
if(LRCInstance::accountModel().getAccountList().size() != 0)
MainWindow::instance().showMaximized();
QTimer::singleShot(100,
[] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment