mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Page prefetching, bugfixing
This commit is contained in:
@ -633,6 +633,12 @@ void PDFViewerMainWindow::updateUI(bool fullUpdate)
|
||||
if (!currentPages.empty())
|
||||
{
|
||||
m_pageNumberSpinBox->setValue(currentPages.front() + 1);
|
||||
|
||||
// Prefetch pages, if it is enabled
|
||||
if (m_settings->isPagePrefetchingEnabled())
|
||||
{
|
||||
m_pdfWidget->getDrawWidgetProxy()->prefetchPages(currentPages.back());
|
||||
}
|
||||
}
|
||||
|
||||
m_sidebarWidget->setCurrentPages(currentPages);
|
||||
|
Reference in New Issue
Block a user