Commit 09c1746e authored by Cédric Bellegarde's avatar Cédric Bellegarde

Fix logical

parent e24ac101
Pipeline #57776 passed with stage
in 8 minutes and 47 seconds
......@@ -97,13 +97,14 @@ class WebView(WebKit2.WebView):
if window is not None and hasattr(window, "zoom_level"):
zoom_level = window.zoom_level
else:
_zoom_level = App().websettings.get_zoom(self.uri) / 100
_zoom_level = App().websettings.get_zoom(self.uri)
if _zoom_level is not None:
zoom_level = _zoom_level
zoom_level = _zoom_level / 100
except Exception as e:
Logger.error("WebView::update_zoom_level(): %s", e)
Logger.debug("Update zoom level: %s", zoom_level)
self.set_zoom_level(zoom_level)
print(zoom_level)
def print(self):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment