mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 02:39:30 +00:00
SUUpdater now only gets created in release
This commit is contained in:
@@ -7,8 +7,11 @@
|
||||
//
|
||||
|
||||
#import "MPUpdateSettingsController.h"
|
||||
#import <Sparkle/Sparkle.h>
|
||||
|
||||
@interface MPUpdateSettingsController ()
|
||||
@property (weak) IBOutlet NSButton *automaticallyCheckForUpdatesCheckButton;
|
||||
@property (weak) IBOutlet NSPopUpButton *checkIntervallPopupButton;
|
||||
|
||||
@end
|
||||
|
||||
@@ -30,4 +33,16 @@
|
||||
return NSLocalizedString(@"UPDATE_SETTINGS", @"Update Settings Label");
|
||||
}
|
||||
|
||||
- (void)awakeFromNib {
|
||||
#ifdef RELEASE
|
||||
[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
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user