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

This commit is contained in:
trop[bot]
2019-07-29 17:17:13 -07:00
committed by Shelley Vohr
parent bc30aeac7c
commit 6b0eaa4832

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;