mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 17:19:24 +00:00
IconSelectionView now can be used to set default icons. Setting other Icons is broken for now. Setting custom icons doesn't work at all.
This commit is contained in:
@@ -14,6 +14,10 @@
|
||||
|
||||
@implementation KPKNode (IconImage)
|
||||
|
||||
+ (NSSet *)keyPathsForValuesAffectingIconImage {
|
||||
return [NSSet setWithArray:@[@"customIcon", @"icon"]];
|
||||
}
|
||||
|
||||
- (NSImage *)iconImage {
|
||||
if(self.customIcon) {
|
||||
return self.customIcon.image;
|
||||
|
||||
Reference in New Issue
Block a user