Commit 8ce1d629 authored by Ming Rui Zhang's avatar Ming Rui Zhang

aboutdialog: does not show aboutdialog on first installation

Change-Id: I28b71fc9e31327f92a0dd6f1b083c2a5817161cb
parent 0e701412
......@@ -288,19 +288,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,
[] {
QSettings settings("jami.net", "Jami");
settings.setValue(SettingsKey::hasRun, 1);
auto aboutDialog = std::make_unique<AboutDialog>(&MainWindow::instance());
aboutDialog->getContainer()->exec();
});
} else {
MainWindow::instance().showWindow();
}
MainWindow::instance().showWindow();
} else {
MainWindow::instance().showMinimized();
MainWindow::instance().hide();
......
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