mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-15 04:52:29 +00:00
Displaying dialog when Sparkle is disabled
This commit is contained in:
@@ -34,13 +34,14 @@
|
||||
}
|
||||
|
||||
- (void)awakeFromNib {
|
||||
#ifdef RELEASE
|
||||
/* only enable bindings to settings in release mode */
|
||||
#ifdef DEBUG
|
||||
self.checkIntervallPopupButton.enabled = NO;
|
||||
self.automaticallyCheckForUpdatesCheckButton.enabled = NO;
|
||||
#else
|
||||
[self.checkIntervallPopupButton bind:NSSelectedTagBinding toObject:[SUUpdater sharedUpdater] withKeyPath:NSStringFromSelector(@selector(updateCheckInterval)) options:nil];
|
||||
[self.checkIntervallPopupButton bind:NSEnabledBinding toObject:[SUUpdater sharedUpdater] withKeyPath:NSStringFromSelector(@selector(automaticallyChecksForUpdates)) options:nil];
|
||||
[self.automaticallyCheckForUpdatesCheckButton bind:NSValueBinding toObject:[SUUpdater sharedUpdater] withKeyPath:NSStringFromSelector(@selector(automaticallyChecksForUpdates)) options:nil];
|
||||
#else
|
||||
self.checkIntervallPopupButton.enabled = NO;
|
||||
self.automaticallyCheckForUpdatesCheckButton.enabled = NO;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user