mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Use reference
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
// Helpers to update touch bar items
|
||||
- (void)updateButton:(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)updatePopover:(NSPopoverTouchBarItem*)item withOptions:(const mate::PersistentDictionary&)options;
|
||||
|
||||
|
||||
@@ -252,7 +252,7 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
|
||||
}
|
||||
|
||||
- (void)updateColorPicker:(NSColorPickerTouchBarItem*)item
|
||||
withOptions:(const mate::PersistentDictionary)options {
|
||||
withOptions:(const mate::PersistentDictionary&)options {
|
||||
std::string customizationLabel;
|
||||
if (options.Get("customizationLabel", &customizationLabel)) {
|
||||
item.customizationLabel = base::SysUTF8ToNSString(customizationLabel);
|
||||
|
||||
Reference in New Issue
Block a user