mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 10:36:30 +03:00
ecode: Improved "Open with ecode" on macOS.
This commit is contained in:
@@ -600,9 +600,14 @@ void App::onFileDropped( String file ) {
|
||||
}
|
||||
}
|
||||
|
||||
loadFileFromPath( file, false, codeEditor, [tab]( UICodeEditor*, const std::string& ) {
|
||||
loadFileFromPath( file, false, codeEditor, [this, tab]( UICodeEditor* editor, const std::string& ) {
|
||||
if ( tab )
|
||||
tab->getTabWidget()->setTabSelected( tab );
|
||||
tab->setTabSelected();
|
||||
else {
|
||||
UITab* tab = mSplitter->tabFromEditor( editor );
|
||||
if ( tab )
|
||||
tab->setTabSelected();
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
@@ -1636,6 +1641,8 @@ void App::loadFileDelayed() {
|
||||
editor->runOnMainThread( [this, editor, fileAndPos] {
|
||||
editor->goToLine( fileAndPos.second );
|
||||
mSplitter->addEditorPositionToNavigationHistory( editor );
|
||||
UITab* tab = mSplitter->tabFromEditor( editor );
|
||||
if (tab) tab->setTabSelected();
|
||||
} );
|
||||
} );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user