mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: clearing of the backgroundColor property on TouchBarButton (#19471)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user