mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-01 18:07:05 -04:00
respect setting of parent checkboxes for minimizeToTray
This commit is contained in:
parent
c93b12ff05
commit
539f86fd0b
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue