Fix current page not updating when clicking on thumbnails list

This commit is contained in:
Paddy Xu
2017-05-02 00:07:45 +03:00
parent 7d05479b78
commit c6231cf7a7
3 changed files with 13 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ namespace QuickLook.Plugin.OfficeViewer
context.Title = $"{Path.GetFileName(path)} (1 / {_pdfViewer.TotalPages})";
};
_pdfViewer.CurrentPageChanged += (sender, e) => context.Title =
$"{Path.GetFileName(path)} ({_pdfViewer.CurrectPage + 1} / {_pdfViewer.TotalPages})";
$"{Path.GetFileName(path)} ({_pdfViewer.CurrentPage + 1} / {_pdfViewer.TotalPages})";
context.ViewerContent = _pdfViewer;