summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsMenuBuilder.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-04-12 09:24:39 +0200
committerDamiano Galassi <[email protected]>2020-04-12 09:24:39 +0200
commitde9b27a42c017fa4ccfe5e3577d6f623a81efe6e (patch)
tree0f782556d758d0fb2f10af948c4a66d202c22c7f /macosx/HBPresetsMenuBuilder.m
parentedf1e2f70090eacae73f22772310cb11afb8a1f5 (diff)
MacGui: improve some NSNotificationCenter calls to avoid listening to unwanted notifications.
Diffstat (limited to 'macosx/HBPresetsMenuBuilder.m')
-rw-r--r--macosx/HBPresetsMenuBuilder.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBPresetsMenuBuilder.m b/macosx/HBPresetsMenuBuilder.m
index fa296c228..6045f7468 100644
--- a/macosx/HBPresetsMenuBuilder.m
+++ b/macosx/HBPresetsMenuBuilder.m
@@ -26,7 +26,7 @@
_manager = manager;
_action = action;
- [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(build) name:HBPresetsChangedNotification object:nil];
+ [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(build) name:HBPresetsChangedNotification object:manager];
}
return self;