diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2019-10-07 17:12:04 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2019-10-07 17:12:04 +0200 |
commit | b9726d7fdabc3768ea3dd25608a7233c81b475b6 (patch) | |
tree | 4bc663549a9b9ffbd69df58d9b579404563d821d /src/mainwindow.cpp | |
parent | 8fb417113f5499d28702ef7502bd635641e78ca3 (diff) |
Start minimized should not only be checked on clean install, fixes #471
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 69a492e1..dfbc01be 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -484,13 +484,13 @@ void MainWindow::restoreWindow() { if (QtPassSettings::isUseTrayIcon() && tray == nullptr) { initTrayIcon(); - if (m_qtPass->isFreshStart() && QtPassSettings::isStartMinimized()) { + if (QtPassSettings::isStartMinimized()) { // since we are still in constructor, can't directly hide QTimer::singleShot(10, this, SLOT(hide())); } - } /*else if (!QtPassSettings::isUseTrayIcon() && tray != NULL) { + } else if (!QtPassSettings::isUseTrayIcon() && tray != nullptr) { destroyTrayIcon(); - }*/ + } } /** |