From edf1e2f70090eacae73f22772310cb11afb8a1f5 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sun, 12 Apr 2020 09:22:11 +0200 Subject: MacGui: set the "show all" button state properly when the view is loaded. --- macosx/HBAudioDefaultsController.m | 2 +- macosx/HBSubtitlesDefaultsController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'macosx') diff --git a/macosx/HBAudioDefaultsController.m b/macosx/HBAudioDefaultsController.m index b299875d7..12dae7805 100644 --- a/macosx/HBAudioDefaultsController.m +++ b/macosx/HBAudioDefaultsController.m @@ -41,7 +41,7 @@ static void *HBAudioDefaultsContext = &HBAudioDefaultsContext; - (void)windowDidLoad { - [self addObserver:self forKeyPath:@"tableController.showSelectedOnly" options:0 context:HBAudioDefaultsContext]; + [self addObserver:self forKeyPath:@"tableController.showSelectedOnly" options:NSKeyValueObservingOptionInitial context:HBAudioDefaultsContext]; if (self.settings.trackSelectionLanguages.count) { diff --git a/macosx/HBSubtitlesDefaultsController.m b/macosx/HBSubtitlesDefaultsController.m index a1b0307b8..26f6c8607 100644 --- a/macosx/HBSubtitlesDefaultsController.m +++ b/macosx/HBSubtitlesDefaultsController.m @@ -37,7 +37,7 @@ static void *HBSubtitlesDefaultsContext = &HBSubtitlesDefaultsContext; - (void)windowDidLoad { - [self addObserver:self forKeyPath:@"tableController.showSelectedOnly" options:0 context:HBSubtitlesDefaultsContext]; + [self addObserver:self forKeyPath:@"tableController.showSelectedOnly" options:NSKeyValueObservingOptionInitial context:HBSubtitlesDefaultsContext]; if (self.settings.trackSelectionLanguages.count) { -- cgit v1.2.3