mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix toggle window from tray can't hide the window on Windows (#1595)
Fix unreliable check on toggleWindow() which causes Windows systems to be unable to hide the window by clicking on the tray icon (see issue #1595).
This commit is contained in:
parent
319c8201be
commit
467867016d
@ -980,7 +980,7 @@ void MainWindow::hideWindow()
|
||||
|
||||
void MainWindow::toggleWindow()
|
||||
{
|
||||
if ((QApplication::activeWindow() == this) && isVisible() && !isMinimized()) {
|
||||
if (isVisible() && !isMinimized()) {
|
||||
hideWindow();
|
||||
} else {
|
||||
bringToFront();
|
||||
|
Loading…
Reference in New Issue
Block a user