Skip to content

Commit

Permalink
Wrap automatic collection
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali committed Jul 23, 2016
1 parent 80b103c commit 8406988
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions Source/BugsnagNotifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,5 @@
* Enable or disable automatic breadcrumb collection based on configuration
*/
- (void)updateAutomaticBreadcrumbDetectionSettings;

@end
14 changes: 0 additions & 14 deletions Source/BugsnagNotifier.m
Original file line number Diff line number Diff line change
Expand Up @@ -341,20 +341,6 @@ - (void)lowMemoryWarning:(NSNotification *)notif {
[self sendBreadcrumbForNotification:notif];
}
}

#elif TARGET_OS_MAC
- (void)didReceiveMenuAction:(NSNotification *)notif {
NSMenuItem *menuItem = [[notif userInfo] valueForKey:@"MenuItem"];
if ([menuItem isKindOfClass:[NSMenuItem class]]) {
[Bugsnag
leaveBreadcrumbWithBlock:^(BugsnagBreadcrumb *_Nonnull breadcrumb) {
breadcrumb.type = BSGBreadcrumbTypeState;
breadcrumb.name = [self breadcrumbNameForNotificationName:notif.name];
if (menuItem.title.length > 0)
breadcrumb.metadata = @{ @"action" : menuItem.title };
}];
}
}
#endif

- (void)updateAutomaticBreadcrumbDetectionSettings {
Expand Down

0 comments on commit 8406988

Please sign in to comment.