Use reference
This commit is contained in:
parent
f297ba987e
commit
ca29ec0101
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@
|
||||||
// Helpers to update touch bar items
|
// Helpers to update touch bar items
|
||||||
- (void)updateButton:(NSCustomTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
- (void)updateButton:(NSCustomTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
||||||
- (void)updateLabel:(NSCustomTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
- (void)updateLabel:(NSCustomTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
||||||
- (void)updateColorPicker:(NSColorPickerTouchBarItem*)item withOptions:(const mate::PersistentDictionary)options;
|
- (void)updateColorPicker:(NSColorPickerTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
||||||
- (void)updateSlider:(NSSliderTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
- (void)updateSlider:(NSSliderTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
||||||
- (void)updatePopover:(NSPopoverTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
- (void)updatePopover:(NSPopoverTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
||||||
|
|
||||||
|
|
|
@ -252,7 +252,7 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)updateColorPicker:(NSColorPickerTouchBarItem*)item
|
- (void)updateColorPicker:(NSColorPickerTouchBarItem*)item
|
||||||
withOptions:(const mate::PersistentDictionary)options {
|
withOptions:(const mate::PersistentDictionary&)options {
|
||||||
std::string customizationLabel;
|
std::string customizationLabel;
|
||||||
if (options.Get("customizationLabel", &customizationLabel)) {
|
if (options.Get("customizationLabel", &customizationLabel)) {
|
||||||
item.customizationLabel = base::SysUTF8ToNSString(customizationLabel);
|
item.customizationLabel = base::SysUTF8ToNSString(customizationLabel);
|
||||||
|
|
Loading…
Reference in a new issue