mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-22 19:59:29 +00:00
Enhancement on selection behavior
This commit is contained in:
@@ -32,9 +32,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
|
||||
}
|
||||
else {
|
||||
view = [outlineView makeViewWithIdentifier:_MPOutlineViewDataViewIdentifier owner:self];
|
||||
NSDictionary *availableIcons = [MPIconHelper availableIcons];
|
||||
NSInteger randomIndex = rand() % [availableIcons count];
|
||||
NSImage *icon = [MPIconHelper icon:(MPIconType)randomIndex];
|
||||
NSImage *icon = [MPIconHelper icon:(MPIconType)[group image]];
|
||||
[view.imageView setImage:icon];
|
||||
[view.textField setStringValue:[group name]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user