Fix Group items
This commit is contained in:
parent
28d5c8bbde
commit
ba3fbc9d1b
1 changed files with 5 additions and 3 deletions
|
@ -693,9 +693,11 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||||
NSMutableArray<NSTouchBarItem*>* generatedItems = [[NSMutableArray alloc] init];
|
NSMutableArray<NSTouchBarItem*>* generatedItems = [[NSMutableArray alloc] init];
|
||||||
NSMutableArray<NSString*>* identList = [self identifierArrayFromDicts:items];
|
NSMutableArray<NSString*>* identList = [self identifierArrayFromDicts:items];
|
||||||
for (NSUInteger i = 0; i < [identList count]; i++) {
|
for (NSUInteger i = 0; i < [identList count]; i++) {
|
||||||
NSTouchBarItem* generatedItem = [self makeItemForIdentifier:[identList objectAtIndex:i]];
|
if ([identList objectAtIndex:i] != NSTouchBarItemIdentifierOtherItemsProxy) {
|
||||||
if (generatedItem) {
|
NSTouchBarItem* generatedItem = [self makeItemForIdentifier:[identList objectAtIndex:i]];
|
||||||
[generatedItems addObject:generatedItem];
|
if (generatedItem) {
|
||||||
|
[generatedItems addObject:generatedItem];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NSGroupTouchBarItem *groupItem = [NSGroupTouchBarItem groupItemWithIdentifier:identifier items:generatedItems];
|
NSGroupTouchBarItem *groupItem = [NSGroupTouchBarItem groupItemWithIdentifier:identifier items:generatedItems];
|
||||||
|
|
Loading…
Reference in a new issue