Fixes in universal locator.

This commit is contained in:
Martín Lucas Golini
2024-08-04 00:44:40 -03:00
parent 7c556ad58e
commit 32aef45a1a
3 changed files with 5 additions and 2 deletions

View File

@@ -1141,7 +1141,7 @@ void UniversalLocator::asyncFuzzyMatchTextDocumentSymbol(
std::vector<ProjectDirectoryTree::CommandInfo> UniversalLocator::getLocatorCommands() const {
std::vector<ProjectDirectoryTree::CommandInfo> vec;
UIIcon* icon = mUISceneNode->findIcon( "chevron-right" );
bool isOpenFolder = mApp->getCurrentProject().empty();
bool isOpenFolder = !mApp->getCurrentProject().empty();
for ( const auto& locator : mLocatorProviders ) {
if ( !isOpenFolder && locator.projectNeeded )
continue;