mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1002 System : Improve restore of main windows from minimized state
This commit is contained in:
@@ -40,7 +40,17 @@ bool RicShowMainWindowFeature::isCommandEnabled()
|
||||
void RicShowMainWindowFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
RiuMainWindow* mainWnd = RiuMainWindow::instance();
|
||||
mainWnd->show();
|
||||
|
||||
if (mainWnd->isMinimized())
|
||||
{
|
||||
mainWnd->showNormal();
|
||||
mainWnd->update();
|
||||
}
|
||||
else
|
||||
{
|
||||
mainWnd->show();
|
||||
}
|
||||
|
||||
mainWnd->raise();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user