feat: allow TouchBarButton instances to be disabled (#20945)
* feat: allow TouchBarButton instances to be disabled * Update touch-bar-button.md
This commit is contained in:
parent
9a198e8ef4
commit
5b7382765c
3 changed files with 10 additions and 0 deletions
|
@ -384,6 +384,10 @@ static NSString* const ImageScrubberItemIdentifier = @"scrubber.image.item";
|
|||
button.imagePosition = NSImageOverlaps;
|
||||
}
|
||||
}
|
||||
|
||||
bool enabled = true;
|
||||
settings.Get("enabled", &enabled);
|
||||
[button setEnabled:enabled];
|
||||
}
|
||||
|
||||
- (NSTouchBarItem*)makeLabelForID:(NSString*)id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue