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,7 +279,8 @@ main(int argc, char* argv[]) ...@@ -279,7 +279,8 @@ main(int argc, char* argv[])
QSettings settings("jami.net", "Jami"); QSettings settings("jami.net", "Jami");
if (not startMinimized) { if (not startMinimized) {
if (settings.value(SettingsKey::hasRun) == 0) { if (settings.value(SettingsKey::hasRun) == 0) {
MainWindow::instance().showMaximized(); if(LRCInstance::accountModel().getAccountList().size() != 0)
MainWindow::instance().showMaximized();
QTimer::singleShot(100, QTimer::singleShot(100,
[] { [] {
QSettings settings("jami.net", "Jami"); QSettings settings("jami.net", "Jami");
......
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