Skip to content
Snippets Groups Projects
Commit 739cffe7 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

mainwindow: only minimize on close if not onboarding

Change-Id: Id807371f3687bb4ae028c5cc1931f11d13d0ac6b
parent f705379d
No related branches found
No related tags found
No related merge requests found
...@@ -290,7 +290,8 @@ void MainWindow::closeEvent(QCloseEvent* event) ...@@ -290,7 +290,8 @@ void MainWindow::closeEvent(QCloseEvent* event)
{ {
LRCInstance::avModel().stopPreview(); LRCInstance::avModel().stopPreview();
QSettings settings("jami.net", "Jami"); QSettings settings("jami.net", "Jami");
if (settings.value(SettingsKey::closeOrMinimized).toBool()) { if (LRCInstance::accountModel().getAccountList().size() &&
settings.value(SettingsKey::closeOrMinimized).toBool()) {
this->hide(); this->hide();
event->ignore(); event->ignore();
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment