Support icon property to match MenuItem
This commit is contained in:
parent
506b42b563
commit
a34f9d3583
2 changed files with 3 additions and 2 deletions
|
@ -227,7 +227,7 @@ static NSTouchBarItemIdentifier SliderIdentifier = @"com.electron.touchbar.slide
|
|||
}
|
||||
|
||||
gfx::Image image;
|
||||
if (settings.Get("image", &image)) {
|
||||
if (settings.Get("icon", &image)) {
|
||||
button.image = image.AsNSImage();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue