summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-04-12 09:22:11 +0200
committerDamiano Galassi <[email protected]>2020-04-12 09:22:11 +0200
commitedf1e2f70090eacae73f22772310cb11afb8a1f5 (patch)
treefb85ff6a6113638c78c0ace52890dcd43c726a91 /macosx
parentc0a4500498efdc8fe4d0083432af8423d2e8ddbd (diff)
MacGui: set the "show all" button state properly when the view is loaded.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBAudioDefaultsController.m2
-rw-r--r--macosx/HBSubtitlesDefaultsController.m2
2 files changed, 2 insertions, 2 deletions
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)
{