FIX: the issue when no tag selected in 'Search for combined finder tags' on macOS

This commit is contained in:
rich2014 2024-10-24 22:40:41 +08:00
commit 50c505da51
2 changed files with 5 additions and 0 deletions

View file

@ -187,6 +187,8 @@ procedure TToolBarMenuHandler.onFinderTagSelectorPanelClose(const cancel: Boolea
begin
if cancel then
Exit;
if tagNames.count = 0 then
Exit;
uDarwinFinderModelUtil.searchFilesForTagNames( tagNames, @self.onSearchFinderTagComplete );
end;

View file

@ -304,6 +304,9 @@ var
query: NSMetadataQuery;
predicate: NSPredicate;
begin
if tagNames.count = 0 then
Exit;
// release in initalGatherComplete()
query:= NSMetadataQuery.new;
// release in initalGatherComplete()