mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
respect setting of parent checkboxes for minimizeToTray
This commit is contained in:
parent
c93b12ff05
commit
539f86fd0b
@ -470,7 +470,10 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
if (config()->get("GUI/MinimizeOnClose").toBool() && !appExitCalled)
|
||||
bool minimizeOnClose = config()->get("GUI/ShowTrayIcon").toBool() &&
|
||||
config()->get("GUI/MinimizeToTray").toBool() &&
|
||||
config()->get("GUI/MinimizeOnClose").toBool();
|
||||
if (minimizeOnClose && !appExitCalled)
|
||||
{
|
||||
event->ignore();
|
||||
hide();
|
||||
|
Loading…
Reference in New Issue
Block a user