mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 18:16:31 +03:00
Refactor how App is exposed. Expose more functionality to the Plugins.
This commit is contained in:
@@ -564,7 +564,7 @@ void App::initPluginManager() {
|
||||
cb( tab->getOwnedWidget()->asType<UICodeEditor>(), path );
|
||||
}
|
||||
},
|
||||
[this] { return getProjectBuildManager(); } );
|
||||
this );
|
||||
mPluginManager->onPluginEnabled = [this]( Plugin* plugin ) {
|
||||
if ( nullptr == mUISceneNode || plugin->isReady() ) {
|
||||
onPluginEnabled( plugin );
|
||||
@@ -3829,7 +3829,7 @@ void App::init( const LogLevel& logLevel, std::string file, const Float& pidelDe
|
||||
|
||||
initImageView();
|
||||
|
||||
mStatusBar->setApp( this );
|
||||
mStatusBar->setPluginContextProvider( this );
|
||||
|
||||
mSettings = std::make_unique<SettingsMenu>();
|
||||
mSettings->createSettingsMenu( this, mMenuBar );
|
||||
|
||||
Reference in New Issue
Block a user