File locator now displays the relative path to the open folder instead of the full path of a file.

Improve universal locator options when no folder is open (fixes SpartanJ/ecode#303).
This commit is contained in:
Martín Lucas Golini
2024-07-31 20:52:30 -03:00
parent 9f35eaaa35
commit 7442aa42d9
5 changed files with 118 additions and 74 deletions

View File

@@ -230,7 +230,7 @@ void App::openFileDialog() {
}
std::string App::getLastUsedFolder() {
if ( !mCurrentProject.empty() )
if ( !mCurrentProject.empty() && mCurrentProject != getPlaygroundPath() )
return mCurrentProject;
if ( !mRecentFolders.empty() )
return mRecentFolders.front();