diff options
author | Damiano Galassi <[email protected]> | 2020-04-12 09:24:39 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2020-04-12 09:24:39 +0200 |
commit | de9b27a42c017fa4ccfe5e3577d6f623a81efe6e (patch) | |
tree | 0f782556d758d0fb2f10af948c4a66d202c22c7f /macosx/HBPresetsMenuBuilder.m | |
parent | edf1e2f70090eacae73f22772310cb11afb8a1f5 (diff) |
MacGui: improve some NSNotificationCenter calls to avoid listening to unwanted notifications.
Diffstat (limited to 'macosx/HBPresetsMenuBuilder.m')
-rw-r--r-- | macosx/HBPresetsMenuBuilder.m | 2 |
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; |