Fix Group items
This commit is contained in:
parent
28d5c8bbde
commit
ba3fbc9d1b
1 changed files with 5 additions and 3 deletions
|
@ -693,11 +693,13 @@ 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++) {
|
||||||
|
if ([identList objectAtIndex:i] != NSTouchBarItemIdentifierOtherItemsProxy) {
|
||||||
NSTouchBarItem* generatedItem = [self makeItemForIdentifier:[identList objectAtIndex:i]];
|
NSTouchBarItem* generatedItem = [self makeItemForIdentifier:[identList objectAtIndex:i]];
|
||||||
if (generatedItem) {
|
if (generatedItem) {
|
||||||
[generatedItems addObject:generatedItem];
|
[generatedItems addObject:generatedItem];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
NSGroupTouchBarItem *groupItem = [NSGroupTouchBarItem groupItemWithIdentifier:identifier items:generatedItems];
|
NSGroupTouchBarItem *groupItem = [NSGroupTouchBarItem groupItemWithIdentifier:identifier items:generatedItems];
|
||||||
|
|
||||||
std::string customizationLabel;
|
std::string customizationLabel;
|
||||||
|
|
Loading…
Reference in a new issue