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

This commit is contained in:
trop[bot]
2019-07-30 09:20:37 -07:00
committed by Shelley Vohr
parent 2ed6e590a1
commit 13cf7b0bc0

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;