fix: clearing of the backgroundColor property on TouchBarButton (#19471)

This commit is contained in:
trop[bot]
2019-07-29 14:51:13 -07:00
committed by Shelley Vohr
parent a306fdf512
commit c006a6db66

View File

@@ -353,8 +353,11 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
NSButton* button = (NSButton*)item.view;
std::string backgroundColor;
if (settings.Get("backgroundColor", &backgroundColor)) {
if (settings.Get("backgroundColor", &backgroundColor) &&
!backgroundColor.empty()) {
button.bezelColor = [self colorFromHexColorString:backgroundColor];
} else {
button.bezelColor = nil;
}
std::string label;