Skip to content

Commit

Permalink
fix: use correct orderedItem touchbar property
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Feb 24, 2021
1 parent 4456c50 commit 257cca0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shell/browser/ui/cocoa/electron_touch_bar.mm
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ - (void)updatePopover:(NSPopoverTouchBarItem*)item

gin_helper::PersistentDictionary child;
std::vector<gin_helper::PersistentDictionary> items;
if (settings.Get("child", &child) && child.Get("ordereredItems", &items)) {
if (settings.Get("child", &child) && child.Get("orderedItems", &items)) {
item.popoverTouchBar =
[self touchBarFromItemIdentifiers:[self identifiersFromSettings:items]];
}
Expand All @@ -572,7 +572,7 @@ - (NSTouchBarItem*)makeGroupForID:(NSString*)id
if (!settings.Get("child", &child))
return nil;
std::vector<gin_helper::PersistentDictionary> items;
if (!child.Get("ordereredItems", &items))
if (!child.Get("orderedItems", &items))
return nil;

NSMutableArray* generatedItems = [NSMutableArray array];
Expand Down Expand Up @@ -601,7 +601,7 @@ - (void)updateGroup:(NSGroupTouchBarItem*)item
if (!settings.Get("child", &child))
return;
std::vector<gin_helper::PersistentDictionary> items;
if (!child.Get("ordereredItems", &items))
if (!child.Get("orderedItems", &items))
return;

item.groupTouchBar =
Expand Down

0 comments on commit 257cca0

Please sign in to comment.