diff options
author | Damiano Galassi <[email protected]> | 2019-08-30 10:39:57 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-08-30 10:39:57 +0200 |
commit | 8d029edf1e0b12e9bc9b36d70bef931488a7c7d6 (patch) | |
tree | 8a06f3fd998859256ac20e0b28102c9c1552dc1b | |
parent | 2dff6f93940c1d1d16b04d2b33c3b21ba910a186 (diff) |
MacGui: passthru tracks names.
-rw-r--r-- | macosx/HBAudio.m | 3 | ||||
-rw-r--r-- | macosx/HBAudioTrack.m | 3 | ||||
-rw-r--r-- | macosx/HBSubtitlesTrack.m | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/macosx/HBAudio.m b/macosx/HBAudio.m index 549c87d34..14ef1afdd 100644 --- a/macosx/HBAudio.m +++ b/macosx/HBAudio.m @@ -101,7 +101,8 @@ NSString *HBAudioEncoderChangedNotification = @"HBAudioEncoderChangedNotificatio [self removeTracksAtIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, self.tracks.count)]]; // Add the remaining tracks - for (NSUInteger idx = 1; idx < self.sourceTracksArray.count; idx++) { + for (NSUInteger idx = 1; idx < self.sourceTracksArray.count; idx++) + { [self addTrack:[self trackFromSourceTrackIndex:idx]]; } diff --git a/macosx/HBAudioTrack.m b/macosx/HBAudioTrack.m index 178dad195..4ec01eff0 100644 --- a/macosx/HBAudioTrack.m +++ b/macosx/HBAudioTrack.m @@ -45,6 +45,7 @@ _dataSource = dataSource; _sourceTrackIdx = index; _container = container; + _title = [dataSource sourceTrackAtIndex:_sourceTrackIdx].title; [self validateSettings]; @@ -91,6 +92,8 @@ if (!(self.undo.isUndoing || self.undo.isRedoing)) { + self.title = [self.dataSource sourceTrackAtIndex:_sourceTrackIdx].title; + [self validateSettings]; if (oldIdx != sourceTrackIdx) diff --git a/macosx/HBSubtitlesTrack.m b/macosx/HBSubtitlesTrack.m index fa17d72a0..019c89cf9 100644 --- a/macosx/HBSubtitlesTrack.m +++ b/macosx/HBSubtitlesTrack.m @@ -55,6 +55,7 @@ static NSArray *_languagesArray = nil; _dataSource = dataSource; _sourceTrackIdx = index; _container = container; + _title = [dataSource sourceTrackAtIndex:_sourceTrackIdx].title; [self validateSettings]; @@ -121,6 +122,8 @@ static NSArray *_languagesArray = nil; if (!(self.undo.isUndoing || self.undo.isRedoing)) { + self.title = [self.dataSource sourceTrackAtIndex:_sourceTrackIdx].title; + [self validateSettings]; if (oldIdx != sourceTrackIdx) |