Support icon property to match MenuItem

This commit is contained in:
Kevin Sawicki 2017-03-02 12:56:23 -08:00
parent 506b42b563
commit a34f9d3583
2 changed files with 3 additions and 2 deletions

View file

@ -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();
}
}