mirror of
https://github.com/YACReader/yacreader
synced 2025-08-28 09:04:27 -04:00
Fix restoring the window from a minimized state
This commit is contained in:
@ -103,7 +103,11 @@ void TrayIconController::showWindow()
|
|||||||
OSXShowDockIcon();
|
OSXShowDockIcon();
|
||||||
window->showNormal();
|
window->showNormal();
|
||||||
#else
|
#else
|
||||||
window->show();
|
if (window->isMinimized()) {
|
||||||
|
window->setWindowState((window->windowState() & ~Qt::WindowMinimized));
|
||||||
|
} else {
|
||||||
|
window->show();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
window->raise(); // for MacOS
|
window->raise(); // for MacOS
|
||||||
window->activateWindow(); // for Windows
|
window->activateWindow(); // for Windows
|
||||||
|
Reference in New Issue
Block a user