mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Trigger a rendering pass when the settings change
This commit is contained in:
@ -358,6 +358,15 @@ void Viewer::goTo(unsigned int page)
|
||||
render->goTo(page);
|
||||
}
|
||||
|
||||
void Viewer::onImageOptionsChanged()
|
||||
{
|
||||
if (continuousScroll) {
|
||||
continuousWidget->invalidateScaledImageCache();
|
||||
} else {
|
||||
updatePage();
|
||||
}
|
||||
}
|
||||
|
||||
void Viewer::updatePage()
|
||||
{
|
||||
if (continuousScroll) {
|
||||
|
||||
Reference in New Issue
Block a user