From 870f42d302455b0c45fbc1ec0f02058f9579a89a Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Wed, 14 Oct 2026 13:26:38 +0200 Subject: [PATCH] Modernize the deleted-file icon lookup Use iconForContentType: with UTTypeData for Git-deleted entries, matching the existing generic-file fallback. On the tested macOS, the legacy HFS lookup draws no document icon; the modern lookup restores it while retaining the deletion badge. Refs #118 --- Frameworks/TMFileReference/src/TMFileReference.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/TMFileReference/src/TMFileReference.mm b/Frameworks/TMFileReference/src/TMFileReference.mm index 14512140f9..11e76bed29 100644 --- a/Frameworks/TMFileReference/src/TMFileReference.mm +++ b/Frameworks/TMFileReference/src/TMFileReference.mm @@ -189,7 +189,7 @@ - (NSImage*)image NSImage* image; if(scmStatus == scm::status::deleted) { - image = [NSWorkspace.sharedWorkspace iconForFileType:NSFileTypeForHFSTypeCode((OSType)kUnknownFSObjectIcon)]; + image = [NSWorkspace.sharedWorkspace iconForContentType:UTTypeData]; } else if(url.isFileURL) {