identList -> identifiers
This commit is contained in:
parent
b879872317
commit
4d6c779839
1 changed files with 4 additions and 4 deletions
|
@ -371,10 +371,10 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
|
||||||
if (!child.Get("ordereredItems", &items)) return nil;
|
if (!child.Get("ordereredItems", &items)) return nil;
|
||||||
|
|
||||||
NSMutableArray* generatedItems = [NSMutableArray array];
|
NSMutableArray* generatedItems = [NSMutableArray array];
|
||||||
NSMutableArray* identList = [self identifiersFromSettings:items];
|
NSMutableArray* identifiers = [self identifiersFromSettings:items];
|
||||||
for (NSUInteger i = 0; i < [identList count]; i++) {
|
for (NSUInteger i = 0; i < [identifiers count]; i++) {
|
||||||
if ([identList objectAtIndex:i] != NSTouchBarItemIdentifierOtherItemsProxy) {
|
if ([identifiers objectAtIndex:i] != NSTouchBarItemIdentifierOtherItemsProxy) {
|
||||||
NSTouchBarItem* generatedItem = [self makeItemForIdentifier:[identList objectAtIndex:i]];
|
NSTouchBarItem* generatedItem = [self makeItemForIdentifier:[identifiers objectAtIndex:i]];
|
||||||
if (generatedItem) {
|
if (generatedItem) {
|
||||||
[generatedItems addObject:generatedItem];
|
[generatedItems addObject:generatedItem];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue