MacPDF: Show correct page number in title bar after restore

This commit is contained in:
Nico Weber 2023-09-29 22:25:29 -04:00 committed by Andreas Kling
parent e5283cd648
commit a0b939cef4

View file

@ -164,6 +164,7 @@ static NSBitmapImageRep* ns_from_gfx(NonnullRefPtr<Gfx::Bitmap> bitmap_p)
_page_index = min(max(0, page_index), _doc->get_page_count() - 1);
NSLog(@"encodeRestorableStateWithCoder restored %d", _page_index);
[self invalidateCachedBitmap];
[_delegate pageChanged];
}
}