mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 07:26:03 -06:00
#1002 System : Improve restore of main windows from minimized state
This commit is contained in:
parent
9c9bfebbe7
commit
44b5eab736
@ -1507,7 +1507,16 @@ RiuMainPlotWindow* RiaApplication::getOrCreateAndShowMainPlotWindow()
|
||||
loadAndUpdatePlotData();
|
||||
}
|
||||
|
||||
m_mainPlotWindow->show();
|
||||
if (m_mainPlotWindow->isMinimized())
|
||||
{
|
||||
m_mainPlotWindow->showNormal();
|
||||
m_mainPlotWindow->update();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_mainPlotWindow->show();
|
||||
}
|
||||
|
||||
m_mainPlotWindow->raise();
|
||||
|
||||
return m_mainPlotWindow;
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user