From 8d029edf1e0b12e9bc9b36d70bef931488a7c7d6 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 30 Aug 2019 10:39:57 +0200 Subject: MacGui: passthru tracks names. --- macosx/HBAudio.m | 3 ++- macosx/HBAudioTrack.m | 3 +++ macosx/HBSubtitlesTrack.m | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3