mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 02:39:30 +00:00
Fixed sorting and selection of database icons (issue #118)
This commit is contained in:
@@ -58,7 +58,7 @@ NSInteger const kMPDefaultIcon = -1;
|
||||
NSButton *button = sender;
|
||||
NSImage *image = [button image];
|
||||
NSUInteger buttonIndex = [[self.iconCollectionView content] indexOfObject:image];
|
||||
self.selectedIcon = [[[MPIconHelper availableIconNames] allKeys][buttonIndex] integerValue];
|
||||
self.selectedIcon = [[MPIconHelper databaseIconType] [buttonIndex] integerValue];
|
||||
[self.popover performClose:self];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user