mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-05 11:54:59 -04:00
cleaner handling of TrayIconEnabled
This commit is contained in:
parent
539f86fd0b
commit
86f12d9e83
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||||
|
|
||||||
void MainWindow::closeEvent(QCloseEvent* event)
|
void MainWindow::closeEvent(QCloseEvent* event)
|
||||||
{
|
{
|
||||||
bool minimizeOnClose = config()->get("GUI/ShowTrayIcon").toBool() &&
|
bool minimizeOnClose = isTrayIconEnabled() &&
|
||||||
config()->get("GUI/MinimizeToTray").toBool() &&
|
config()->get("GUI/MinimizeToTray").toBool() &&
|
||||||
config()->get("GUI/MinimizeOnClose").toBool();
|
config()->get("GUI/MinimizeOnClose").toBool();
|
||||||
if (minimizeOnClose && !appExitCalled)
|
if (minimizeOnClose && !appExitCalled)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue