From a0b939cef4b2972b715c951131016fd3d1a75f9d Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 29 Sep 2023 22:25:29 -0400 Subject: [PATCH] MacPDF: Show correct page number in title bar after restore --- Meta/Lagom/Contrib/MacPDF/LagomPDFView.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/Meta/Lagom/Contrib/MacPDF/LagomPDFView.mm b/Meta/Lagom/Contrib/MacPDF/LagomPDFView.mm index 75ff0a019f..0355a5d181 100644 --- a/Meta/Lagom/Contrib/MacPDF/LagomPDFView.mm +++ b/Meta/Lagom/Contrib/MacPDF/LagomPDFView.mm @@ -164,6 +164,7 @@ static NSBitmapImageRep* ns_from_gfx(NonnullRefPtr bitmap_p) _page_index = min(max(0, page_index), _doc->get_page_count() - 1); NSLog(@"encodeRestorableStateWithCoder restored %d", _page_index); [self invalidateCachedBitmap]; + [_delegate pageChanged]; } }