diff --git a/Sparkle/SUStatusController.m b/Sparkle/SUStatusController.m index 40af4f5e..38ca0d7c 100644 --- a/Sparkle/SUStatusController.m +++ b/Sparkle/SUStatusController.m @@ -136,8 +136,6 @@ { self.touchBarProvider = [[SUTouchBarProvider alloc] initWithIdentifier:self.className]; self.touchBarButton = [self.touchBarProvider addButtonWithButton:self.actionButton]; - [self.touchBarButton bind:@"title" toObject:self.actionButton withKeyPath:@"title" options:nil]; - [self.touchBarButton bind:@"enabled" toObject:self.actionButton withKeyPath:@"enabled" options:nil]; return self.touchBarProvider.touchBar; } diff --git a/Sparkle/SUTouchBarProvider.m b/Sparkle/SUTouchBarProvider.m index 044f6506..241e781d 100644 --- a/Sparkle/SUTouchBarProvider.m +++ b/Sparkle/SUTouchBarProvider.m @@ -54,6 +54,9 @@ NSButton *buttonCopy = [NSButton buttonWithTitle:button.title target:button.target action:button.action]; buttonCopy.keyEquivalent = button.keyEquivalent; buttonCopy.tag = button.tag; + + [buttonCopy bind:@"title" toObject:button withKeyPath:@"title" options:nil]; + [buttonCopy bind:@"enabled" toObject:button withKeyPath:@"enabled" options:nil]; item.view = buttonCopy; [self.touchBarItems addObject:item];