Skip to content

Commit

Permalink
fix: remove check for NSCarbonMenuWindow
Browse files Browse the repository at this point in the history
Seems that it still works without it (at least on macOS 11.2.1)
  • Loading branch information
acheronfail committed Mar 9, 2021
1 parent fae1386 commit fae1644
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Pixel Picker/PPMenuShortcutView.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,6 @@ - (void)viewDidMoveToWindow

NSWindow *carbonWindow = [self window];
if (carbonWindow != nil) {
if (![carbonWindow.className isEqualToString:@"NSCarbonMenuWindow"]) {
NSLog(@"PPMenuShortcutView is designed to work with NSCarbonMenuWindow.");
return;
}

EventTargetRef target = GetApplicationEventTarget();
if (!target) {
NSLog(@"GetEventDispatcherTarget() failed.");
Expand Down

0 comments on commit fae1644

Please sign in to comment.