mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-27 18:01:12 -05:00
cleaner handling of TrayIconEnabled
This commit is contained in:
parent
539f86fd0b
commit
86f12d9e83
@ -470,7 +470,7 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
bool minimizeOnClose = config()->get("GUI/ShowTrayIcon").toBool() &&
|
||||
bool minimizeOnClose = isTrayIconEnabled() &&
|
||||
config()->get("GUI/MinimizeToTray").toBool() &&
|
||||
config()->get("GUI/MinimizeOnClose").toBool();
|
||||
if (minimizeOnClose && !appExitCalled)
|
||||
|
Loading…
x
Reference in New Issue
Block a user