Skip to content

Commit f9e8957

Browse files
committed
MacPDF: Make MacPDFWindowController validateMenuItem not call super
NSWindowController does not conform to NSMenuItemValidation per docs. https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/MenuList/Articles/EnablingMenuItems.html "Automatic Menu Enabling" also suggests that this doesn't make sense conceptually. Defaulting to `NO` makes it more likely we'll remember to add new menu entries that might need dynamic enabling depending on some state, so let's go with that for now.
1 parent 7ac72c4 commit f9e8957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Meta/Lagom/Contrib/MacPDF/MacPDFWindowController.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ - (BOOL)validateMenuItem:(NSMenuItem*)item
138138
return YES;
139139
if (item.action == @selector(showGoToPageDialog:))
140140
return _pdfDocument.pdf ? YES : NO;
141-
return [super validateMenuItem:item];
141+
return NO;
142142
}
143143

144144
- (IBAction)toggleShowClippingPaths:(id)sender

0 commit comments

Comments
 (0)