mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
Improve how we keep expanded variables in debugger.
This commit is contained in:
@@ -1382,9 +1382,9 @@ void App::syncProjectTreeWithEditor( UICodeEditor* editor ) {
|
||||
std::string path = !loadingPath.empty() ? loadingPath : editor->getDocument().getFilePath();
|
||||
mProjectTreeView->setFocusOnSelection( false );
|
||||
if ( !mCurrentProject.empty() && String::startsWith( path, mCurrentProject ) ) {
|
||||
mProjectTreeView->selectRowWithPath( path.substr( mCurrentProject.size() ) );
|
||||
mProjectTreeView->openRowWithPath( path.substr( mCurrentProject.size() ) );
|
||||
} else {
|
||||
mProjectTreeView->selectRowWithPath( FileSystem::fileNameFromPath( path ) );
|
||||
mProjectTreeView->openRowWithPath( FileSystem::fileNameFromPath( path ) );
|
||||
}
|
||||
mProjectTreeView->setFocusOnSelection( true );
|
||||
}
|
||||
@@ -2828,7 +2828,7 @@ void App::newFolder( const FileInfo& file ) {
|
||||
return;
|
||||
std::string nfp( newFolderPath );
|
||||
FileSystem::filePathRemoveBasePath( mFileSystemModel->getRootPath(), nfp );
|
||||
mProjectTreeView->selectRowWithPath( nfp );
|
||||
mProjectTreeView->openRowWithPath( nfp );
|
||||
},
|
||||
Milliseconds( 100 ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user