mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-21 04:28:26 -04:00
Add again wrongly removed conditional macro for Mac.
Add again the wrongly removed conditional macro for Mac, along with a TODO asking for further documentation on its significance.
This commit is contained in:
parent
f305517724
commit
970cedf972
1 changed files with 2 additions and 1 deletions
|
@ -971,10 +971,11 @@ void MainWindow::trayIconTriggered(QSystemTrayIcon::ActivationReason reason)
|
||||||
void MainWindow::hideWindow()
|
void MainWindow::hideWindow()
|
||||||
{
|
{
|
||||||
saveWindowInformation();
|
saveWindowInformation();
|
||||||
#ifndef Q_OS_LINUX
|
#if !defined(Q_OS_LINUX) && !defined(Q_OS_MAC)
|
||||||
// On some Linux systems, the window should NOT be minimized and hidden (i.e. not shown), at
|
// On some Linux systems, the window should NOT be minimized and hidden (i.e. not shown), at
|
||||||
// the same time (which would happen if both minimize on startup and minimize to tray are set)
|
// the same time (which would happen if both minimize on startup and minimize to tray are set)
|
||||||
// since otherwise it causes problems on restore as seen on issue #1595. Hiding it is enough.
|
// since otherwise it causes problems on restore as seen on issue #1595. Hiding it is enough.
|
||||||
|
// TODO: Add an explanation for why this is also not done on Mac (or remove the check)
|
||||||
setWindowState(windowState() | Qt::WindowMinimized);
|
setWindowState(windowState() | Qt::WindowMinimized);
|
||||||
#endif
|
#endif
|
||||||
QTimer::singleShot(0, this, SLOT(hide()));
|
QTimer::singleShot(0, this, SLOT(hide()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue