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();
|
hide();
|
||||||
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
|
setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
|
||||||
SetHiddenInTray(false);
|
SetHiddenInTray(false);
|
||||||
|
} else if (!isVisible())
|
||||||
|
{
|
||||||
|
show();
|
||||||
|
activateWindow();
|
||||||
} else {
|
} else {
|
||||||
// Window is not hidden but does not have focus; bring it to front.
|
// Window is not hidden but does not have focus; bring it to front.
|
||||||
activateWindow();
|
activateWindow();
|
||||||
|
|
Loading…
Reference in New Issue