Simplify RiuPlotMainWindowTools (#9211)

* Janitor: Add and use onObjectAppended()
* Janitor: Simplify API
This commit is contained in:
Magne Sjaastad
2022-08-18 03:37:51 -07:00
parent ee116c8f3d
commit 30921a158b
34 changed files with 66 additions and 93 deletions

View File

@@ -82,8 +82,8 @@ void RicCreateGridCrossPlotFeature::onActionTriggered( bool isChecked )
collection->updateAllRequiredEditors();
RiaGuiApplication::instance()->getOrCreateAndShowMainPlotWindow();
RiuPlotMainWindowTools::selectAsCurrentItem( dataSet );
RiuPlotMainWindowTools::refreshToolbars();
RiuPlotMainWindowTools::onObjectAppended( dataSet );
}
//--------------------------------------------------------------------------------------------------

View File

@@ -199,8 +199,7 @@ void RicCreateSaturationPressurePlotsFeature::onActionTriggered( bool isChecked
if ( objectToSelect )
{
RiuPlotMainWindowTools::selectAsCurrentItem( objectToSelect );
RiuPlotMainWindowTools::refreshToolbars();
RiuPlotMainWindowTools::onObjectAppended( objectToSelect );
}
}