UPD: minor optimizations and cleanup on macOS

(cherry picked from commit 5e32ec839b)
This commit is contained in:
rich2014 2025-12-30 23:12:58 +08:00 committed by Alexander Koblov
commit 08061758bf
3 changed files with 4 additions and 5 deletions

View file

@ -31,7 +31,6 @@ begin
Result:= False;
if [watch_file_name_change, watch_attributes_change] * gWatchDirs = [] then exit;
if event.isDropabled then exit;
/// if (ecChildChanged in event.categories) and (not isWatchSubdir(event.watchPath) ) then exit;
fileSourceEvent.Path := event.watchPath;
fileSourceEvent.FileName := EmptyStr;

View file

@ -121,10 +121,7 @@ begin
color.set_;
path:= NSBezierPath.bezierPathWithOvalInRect( tagRect );
path.fill;
if focused then
NSColor.alternateSelectedControlTextColor.set_
else
NSColor.textBackgroundColor.set_;
NSColor.alternateSelectedControlTextColor.set_;
path.stroke;
tagRect.origin.x:= tagRect.origin.x - 5;
end;

View file

@ -547,6 +547,9 @@ var
destRect: NSRect;
fs: TiCloudDriveFileSource;
begin
if params.iconRect.IsEmpty then
Exit;
fs:= params.fs as TiCloudDriveFileSource;
image:= fs.getAppIconByPath( params.displayFile.FSFile.FullPath );
if image = nil then