mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
migrateAwayFromDeprecatedIconForFileType
This commit is contained in:
parent
ecc66cace0
commit
d78df0064a
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ namespace MacUtils
|
|||
{
|
||||
@autoreleasepool
|
||||
{
|
||||
NSImage *image = [[NSWorkspace sharedWorkspace] iconForContentType:[UTType typeWithFilenameExtension:ext.toNSString()]];
|
||||
NSImage *image = [[NSWorkspace sharedWorkspace]
|
||||
iconForContentType:[UTType typeWithFilenameExtension:ext.toNSString()]];
|
||||
if (image)
|
||||
{
|
||||
NSRect rect = NSMakeRect(0, 0, size.width(), size.height());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue