feat: use system lock icon if available (#3221)

This commit is contained in:
SweetPPro 2022-06-07 00:56:05 +02:00 committed by GitHub
parent 6c9c446734
commit 5a140d205d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
#import "PeerProgressIndicatorCell.h"
#import "Torrent.h"
#import "WebSeedTableView.h"
#import "NSImageAdditions.h"
#define ANIMATION_ID_KEY @"animationId"
#define WEB_SEED_ANIMATION_ID @"webSeed"
@ -317,7 +318,7 @@
if ([ident isEqualToString:@"Encryption"])
{
return [peer[@"Encryption"] boolValue] ? [NSImage imageNamed:@"Lock"] : nil;
return [peer[@"Encryption"] boolValue] ? [NSImage systemSymbol:@"lock.fill" withFallback:@"Lock"] : nil;
}
else if ([ident isEqualToString:@"Client"])
{