touchBarFromMutatableArray -> touchBarFromItemIdentifiers
This commit is contained in:
parent
b30f7c3c94
commit
f297ba987e
2 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
|||
window:(atom::NativeWindow*)window;
|
||||
|
||||
- (NSTouchBar*)makeTouchBarFromItemOptions:(const std::vector<mate::PersistentDictionary>&)item_options;
|
||||
- (NSTouchBar*)touchBarFromMutatableArray:(NSMutableArray*)items;
|
||||
- (NSTouchBar*)touchBarFromItemIdentifiers:(NSMutableArray*)items;
|
||||
- (NSMutableArray*)identifierArrayFromDicts:(const std::vector<mate::PersistentDictionary>&)dicts;
|
||||
- (void)refreshTouchBarItem:(mate::Arguments*)args;
|
||||
- (void)clear;
|
||||
|
|
|
@ -34,10 +34,10 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
|
|||
|
||||
- (NSTouchBar*)makeTouchBarFromItemOptions:(const std::vector<mate::PersistentDictionary>&)item_options {
|
||||
NSMutableArray* identifiers = [self identifierArrayFromDicts:item_options];
|
||||
return [self touchBarFromMutatableArray:identifiers];
|
||||
return [self touchBarFromItemIdentifiers:identifiers];
|
||||
}
|
||||
|
||||
- (NSTouchBar*)touchBarFromMutatableArray:(NSMutableArray*)items {
|
||||
- (NSTouchBar*)touchBarFromItemIdentifiers:(NSMutableArray*)items {
|
||||
NSTouchBar* bar = [[NSClassFromString(@"NSTouchBar") alloc] init];
|
||||
bar.delegate = delegate_;
|
||||
bar.defaultItemIdentifiers = items;
|
||||
|
@ -328,7 +328,7 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
|
|||
|
||||
std::vector<mate::PersistentDictionary> touchBar;
|
||||
if (options.Get("touchBar", &touchBar)) {
|
||||
item.popoverTouchBar = [self touchBarFromMutatableArray:[self identifierArrayFromDicts:touchBar]];
|
||||
item.popoverTouchBar = [self touchBarFromItemIdentifiers:[self identifierArrayFromDicts:touchBar]];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue