mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-18 05:14:16 -05:00
enable minimize on close for macOS
This commit is contained in:
parent
9f819061cd
commit
b3160a17ea
@ -660,8 +660,12 @@ void MainWindow::databaseTabChanged(int tabIndex)
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
bool minimizeOnClose = isTrayIconEnabled() &&
|
||||
config()->get("GUI/MinimizeOnClose").toBool();
|
||||
bool minimizeOnClose = config()->get("GUI/MinimizeOnClose").toBool();
|
||||
#ifndef Q_OS_MAC
|
||||
// if we aren't on OS X, check if the tray is enabled.
|
||||
// on OS X we are using the dock for the minimize action
|
||||
minimizeOnClose = isTrayIconEnabled() && minimizeOnClose;
|
||||
#endif
|
||||
if (minimizeOnClose && !appExitCalled)
|
||||
{
|
||||
event->ignore();
|
||||
|
Loading…
x
Reference in New Issue
Block a user