summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-12-18 11:18:00 +0000
committerritsuka <[email protected]>2014-12-18 11:18:00 +0000
commit8d8c8c1c56012cb5b4ce7548576832b2348cae2a (patch)
tree0d548d02602f4452e99577d91a1c369ecfadabfb /macosx/HBAudioController.m
parent217d6e9d87b5bdfe75a18b3e5f87327505459cbe (diff)
MacGui: separate the video settings logic from the view controller. There are a number of small regression ("Custom" preset and auto naming not updating) that will be fixed in the next commits.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6606 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioController.m')
-rw-r--r--macosx/HBAudioController.m14
1 files changed, 7 insertions, 7 deletions
diff --git a/macosx/HBAudioController.m b/macosx/HBAudioController.m
index 374441d85..9d608a421 100644
--- a/macosx/HBAudioController.m
+++ b/macosx/HBAudioController.m
@@ -37,7 +37,6 @@ NSString *HBMixdownChangedNotification = @"HBMixdownChangedNotification";
@property (assign) IBOutlet NSPopUpButton *trackPopup;
@property (assign) IBOutlet NSButton *configureDefaults;
@property (assign) IBOutlet NSButton *reloadDefaults;
-@property (nonatomic, readwrite) BOOL enabled;
@property (nonatomic, readwrite, retain) NSArray *masterTrackArray;
@property (nonatomic, retain) NSNumber *videoContainerTag; // initially is the default HB_MUX_MP4
@@ -56,6 +55,7 @@ NSString *HBMixdownChangedNotification = @"HBMixdownChangedNotification";
@synthesize masterTrackArray;
@synthesize noneTrack;
@synthesize videoContainerTag;
+@synthesize enabled = _enabled;
- (instancetype)init
{
@@ -95,13 +95,13 @@ NSString *HBMixdownChangedNotification = @"HBMixdownChangedNotification";
[self switchingTrackFromNone:nil];
}
-- (void)setUIEnabled:(BOOL)flag
+- (void)setEnabled:(BOOL)enabled
{
- self.enabled = flag;
- [fTableView setEnabled:flag];
- [self.trackPopup setEnabled:flag];
- [self.configureDefaults setEnabled:flag];
- [self.reloadDefaults setEnabled:flag];
+ _enabled = enabled;
+ [fTableView setEnabled:enabled];
+ [self.trackPopup setEnabled:enabled];
+ [self.configureDefaults setEnabled:enabled];
+ [self.reloadDefaults setEnabled:enabled];
}
- (BOOL)validateUserInterfaceItem:(id < NSValidatedUserInterfaceItem >)anItem