mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 13:37:43 +03:00
revert old if structure
This commit is contained in:
parent
07d4668670
commit
c0640e49ee
1 changed files with 3 additions and 1 deletions
|
@ -660,7 +660,9 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
|||
|
||||
void MainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
if (isTrayIconEnabled() && config()->get("GUI/MinimizeOnClose").toBool() && !appExitCalled)
|
||||
bool minimizeOnClose = isTrayIconEnabled() &&
|
||||
config()->get("GUI/MinimizeOnClose").toBool();
|
||||
if (minimizeOnClose && !appExitCalled)
|
||||
{
|
||||
event->ignore();
|
||||
hideWindow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue