mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
MacPDF: Unbreak Go to Next/Previous Page after #22768
This commit is contained in:
parent
eb305c6974
commit
a4b5b9e82a
1 changed files with 4 additions and 0 deletions
|
@ -161,6 +161,10 @@ static NSBitmapImageRep* ns_from_gfx(NonnullRefPtr<Gfx::Bitmap> bitmap_p)
|
|||
|
||||
- (BOOL)validateMenuItem:(NSMenuItem*)item
|
||||
{
|
||||
if ([item action] == @selector(goToNextPage:))
|
||||
return _doc ? (_page_index < (int)_doc->get_page_count() - 1) : NO;
|
||||
if ([item action] == @selector(goToPreviousPage:))
|
||||
return _doc ? (_page_index > 0) : NO;
|
||||
if ([item action] == @selector(toggleShowClippingPaths:)) {
|
||||
[item setState:_preferences.show_clipping_paths ? NSControlStateValueOn : NSControlStateValueOff];
|
||||
return _doc ? YES : NO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue