diff options
author | Damiano Galassi <[email protected]> | 2016-07-25 22:50:36 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-07-25 22:50:36 +0200 |
commit | 500234aa0821eada8c42dee8e61f87fa3ffc3fb3 (patch) | |
tree | 4034b4ee0573d23b5baafce94553a2759e3cb564 /macosx/HBSubtitlesTrack.m | |
parent | eb2b23f6cd63b0c96e818b16f73e83160ba6887c (diff) |
MacGui: fix subtitles offset undo and add kvp dependencies for the 'isForcedSupported' method.
Diffstat (limited to 'macosx/HBSubtitlesTrack.m')
-rw-r--r-- | macosx/HBSubtitlesTrack.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBSubtitlesTrack.m b/macosx/HBSubtitlesTrack.m index c9dac3bdc..5ab517b56 100644 --- a/macosx/HBSubtitlesTrack.m +++ b/macosx/HBSubtitlesTrack.m @@ -239,7 +239,7 @@ NSString *keySubTrackSrtFileURL = @"keySubTrackSrtFileURL"; { if (offset != _offset) { - [[self.undo prepareWithInvocationTarget:self] setOffset:_def]; + [[self.undo prepareWithInvocationTarget:self] setOffset:_offset]; } _offset = offset; } @@ -268,7 +268,7 @@ NSString *keySubTrackSrtFileURL = @"keySubTrackSrtFileURL"; - (BOOL)canPassthru { - return (BOOL)hb_subtitle_can_pass(self.type, self.container) && self.isEnabled; + return hb_subtitle_can_pass(self.type, self.container) && self.isEnabled; } - (NSArray<NSString *> *)languages @@ -295,7 +295,7 @@ NSString *keySubTrackSrtFileURL = @"keySubTrackSrtFileURL"; { retval = [NSSet setWithObjects: @"sourceTrackIdx", nil]; } - else if ([key isEqualToString: @"canPassthru"]) + else if ([key isEqualToString: @"canPassthru"] || [key isEqualToString: @"isForcedSupported"] ) { retval = [NSSet setWithObjects: @"isEnabled", @"sourceTrackIdx", nil]; } |