summaryrefslogtreecommitdiffstats
path: root/macosx/HBSubtitlesController.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/HBSubtitlesController.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/HBSubtitlesController.m')
-rw-r--r--macosx/HBSubtitlesController.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/macosx/HBSubtitlesController.m b/macosx/HBSubtitlesController.m
index 4882cc84b..df433fcc2 100644
--- a/macosx/HBSubtitlesController.m
+++ b/macosx/HBSubtitlesController.m
@@ -40,8 +40,6 @@ NSString *keySubTrackLanguageIndex = @"keySubTrackLanguageIndex";
@property (assign) IBOutlet NSButton *configureDefaults;
@property (assign) IBOutlet NSButton *reloadDefaults;
-@property (nonatomic, readwrite) BOOL enabled;
-
// Subtitles arrays
@property (nonatomic, readonly) NSMutableArray *subtitleArray;
@property (nonatomic, readonly) NSMutableArray *subtitleSourceArray;
@@ -68,6 +66,8 @@ NSString *keySubTrackLanguageIndex = @"keySubTrackLanguageIndex";
@implementation HBSubtitlesController
+@synthesize enabled = _enabled;
+
- (instancetype)init
{
self = [super initWithNibName:@"Subtitles" bundle:nil];
@@ -92,13 +92,13 @@ NSString *keySubTrackLanguageIndex = @"keySubTrackLanguageIndex";
return self;
}
-- (void)setUIEnabled:(BOOL)flag
+- (void)setEnabled:(BOOL)enabled
{
- [self.trackPopUp setEnabled:flag];
- [self.configureDefaults setEnabled:flag];
- [self.reloadDefaults setEnabled:flag];
- [self.fTableView setEnabled:flag];
- self.enabled = flag;
+ [self.trackPopUp setEnabled:enabled];
+ [self.configureDefaults setEnabled:enabled];
+ [self.reloadDefaults setEnabled:enabled];
+ [self.fTableView setEnabled:enabled];
+ _enabled = enabled;
}
- (void)titleChanged:(NSNotification *)aNotification