Skip to content

Commit

Permalink
MacGui: fix file extension not being updated after a different contai…
Browse files Browse the repository at this point in the history
…ner format is selected.
  • Loading branch information
galad87 committed May 8, 2021
1 parent ecaa904 commit 76a1f88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions macosx/HBAutoNamer.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,15 @@ - (void)addFormatObservers
{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateFileExtension:) name:HBAudioEncoderChangedNotification object:self.job.audio];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateFileExtension:) name:HBChaptersChangedNotification object:self.job];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateFileExtension:) name:HBContainerChangedNotification object:self.job];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateFileExtension:) name:HBRangeChangedNotification object:self.job.range];
}

- (void)removeFormatObservers
{
[[NSNotificationCenter defaultCenter] removeObserver:self name:HBAudioEncoderChangedNotification object:self.job.audio];
[[NSNotificationCenter defaultCenter] removeObserver:self name:HBChaptersChangedNotification object:self.job];
[[NSNotificationCenter defaultCenter] removeObserver:self name:HBContainerChangedNotification object:self.job];
[[NSNotificationCenter defaultCenter] removeObserver:self name:HBRangeChangedNotification object:_job.range];
}

Expand Down

0 comments on commit 76a1f88

Please sign in to comment.