Skip to content

Commit

Permalink
Find dialog’s “where” pop-up would not allow selecting leaf folders
Browse files Browse the repository at this point in the history
Using the “where” pop-up to navigate to subfolders would only work when the item selected had a submenu.
  • Loading branch information
sorbits committed May 17, 2021
1 parent 965028a commit bdd8942
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Frameworks/Find/src/FFFolderMenu.mm
Expand Up @@ -69,6 +69,7 @@ - (void)menuNeedsUpdate:(NSMenu*)aMenu
NSMenuItem* menuItem = [aMenu addItemWithTitle:[NSFileManager.defaultManager displayNameAtPath:path] action:parentItem.action keyEquivalent:@""];
[menuItem setTarget:parentItem.target];
[menuItem setIconForFile:path];
[menuItem setRepresentedObject:path];

if([FoldersAtPath(path) count])
[self addSubmenuForDirectoryAtPath:path toMenuItem:menuItem];
Expand Down

0 comments on commit bdd8942

Please sign in to comment.