| 3751 | } |
| 3752 | |
| 3753 | std::function<void( UICodeEditor* codeEditor, const std::string& path )> |
| 3754 | App::getForcePositionFn( TextPosition initialPosition ) { |
| 3755 | std::function<void( UICodeEditor * codeEditor, const std::string& path )> forcePosition; |
| 3756 | if ( initialPosition.isValid() ) { |
| 3757 | forcePosition = [this, initialPosition]( UICodeEditor* editor, const auto& ) { |
| 3758 | editor->runOnMainThread( [this, initialPosition, editor] { |
| 3759 | editor->goToLine( initialPosition ); |
| 3760 | mSplitter->addEditorPositionToNavigationHistory( editor ); |
| 3761 | } ); |
| 3762 | }; |
| 3763 | } |
| 3764 | return forcePosition; |
| 3765 | } |
| 3766 | |
| 3767 | void App::initProjectViewEmptyCont() { |
| 3768 | mProjectViewEmptyCont = mUISceneNode->find<UILinearLayout>( "project_view_empty" ); |
nothing calls this directly
no test coverage detected