Simplify RiuPlotMainWindowTools (#9211)

* Janitor: Add and use onObjectAppended()
* Janitor: Simplify API
This commit is contained in:
Magne Sjaastad
2022-09-15 08:19:41 +02:00
parent ee116c8f3d
commit 30921a158b
34 changed files with 66 additions and 93 deletions
@@ -175,11 +175,8 @@ RimStimPlanModelPlot* RicNewStimPlanModelPlotFeature::createPlot( RimStimPlanMod
plot->setAutoScaleDepthValuesEnabled( true );
}
RiuPlotMainWindowTools::selectAsCurrentItem( plot );
RiuPlotMainWindowTools::refreshToolbars();
// Make sure the summary plot window is visible
RiuPlotMainWindowTools::showPlotMainWindow();
RiuPlotMainWindowTools::onObjectAppended( plot );
plot->loadDataAndUpdate();