mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
#4410 Dock Window State : Create static functions instead of singleton
This commit is contained in:
1 parent
a68650ebf8
commit
f43edf3c7d
8 files changed
+149
-140
No files matched your search
@@ -43,6 +43,8 @@ void RicShowMainWindowFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
RiuMainWindow* mainWnd = RiuMainWindow::instance();
|
||||
|
||||
bool triggerReloadOfDockWindowVisibilities = !mainWnd->isVisible();
|
||||
|
||||
if (mainWnd->isMinimized())
|
||||
{
|
||||
mainWnd->showNormal();
|
||||
@@ -54,6 +56,11 @@ void RicShowMainWindowFeature::onActionTriggered(bool isChecked)
|
||||
}
|
||||
|
||||
mainWnd->raise();
|
||||
|
||||
if (triggerReloadOfDockWindowVisibilities)
|
||||
{
|
||||
mainWnd->restoreDockWidgetVisibilities();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user