This commit is contained in:
Martin Rotter 2021-06-01 07:12:46 +02:00
parent b168b6d28e
commit 24fb0a2e35
2 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,7 @@
<url type="donation">https://martinrotter.github.io/donate/</url>
<content_rating type="oars-1.1" />
<releases>
<release version="3.9.2" date="2021-05-31"/>
<release version="3.9.2" date="2021-06-01"/>
</releases>
<content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute>

View File

@ -82,6 +82,10 @@ bool WebViewer::resetWebPageZoom(bool to_factory_default) {
const qreal new_factor = to_factory_default ? 1.0 : qApp->settings()->value(GROUP(Messages),
SETTING(Messages::Zoom)).toReal();
if (to_factory_default) {
qApp->settings()->setValue(GROUP(Messages), Messages::Zoom, new_factor);
}
if (new_factor != zoomFactor()) {
setZoomFactor(new_factor);
return true;