Fix unable to restore window when always hide the main window option is set
This commit is contained in:
parent
1b78e8137c
commit
29464bccfe
|
@ -832,6 +832,10 @@ void MainWindow::ToggleShowHide() {
|
|||
hide();
|
||||
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
|
||||
SetHiddenInTray(false);
|
||||
} else if (!isVisible())
|
||||
{
|
||||
show();
|
||||
activateWindow();
|
||||
} else {
|
||||
// Window is not hidden but does not have focus; bring it to front.
|
||||
activateWindow();
|
||||
|
|
Loading…
Reference in New Issue