MCPcopy Create free account
hub / github.com/SpartanJ/eepp / editorLoadedCounter

Method editorLoadedCounter

src/tools/ecode/appconfig.cpp:707–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707void AppConfig::editorLoadedCounter( ecode::App* app ) {
708 editorsToLoad--;
709 if ( editorsToLoad <= 0 ) {
710 app->getUISceneNode()->runOnMainThread( [app] {
711 if ( !app->getFileToOpen().empty() ) {
712 app->loadFileDelayed();
713 } else {
714 app->getSplitter()->addCurrentPositionToNavigationHistory();
715 }
716 } );
717 }
718}
719
720void AppConfig::loadDocuments( UICodeEditorSplitter* editorSplitter, json j,
721 UITabWidget* curTabWidget, ecode::App* app,

Callers

nothing calls this directly

Calls 6

runOnMainThreadMethod · 0.80
loadFileDelayedMethod · 0.80
getUISceneNodeMethod · 0.45
emptyMethod · 0.45
getSplitterMethod · 0.45

Tested by

no test coverage detected