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

@@ -97,8 +97,7 @@ void RicNewVfpPlotFeature::onActionTriggered( bool isChecked )
if ( !vfpPlots.empty() )
{
RiuPlotMainWindowTools::selectAsCurrentItem( vfpPlots.front() );
RiuPlotMainWindowTools::refreshToolbars();
RiuPlotMainWindowTools::onObjectAppended( vfpPlots.front() );
}
}
}