Commit 9e3dd36c authored by Cédric Bellegarde's avatar Cédric Bellegarde

Catch exception from get_current_monitor_model()

parent cbe2b58c
Pipeline #43053 passed with stage
in 7 minutes and 59 seconds
......@@ -64,14 +64,17 @@ class Window(Gtk.ApplicationWindow):
Update zoom level
@param force as bool
"""
monitor_model = get_current_monitor_model(self)
if force or monitor_model != self.__monitor_model:
# Update window default zoom level
self.__update_zoom_level()
self.__monitor_model = monitor_model
# Update view zoom level
for view in self.__container.views:
view.webview.update_zoom_level()
try:
monitor_model = get_current_monitor_model(self)
if force or monitor_model != self.__monitor_model:
# Update window default zoom level
self.__update_zoom_level()
self.__monitor_model = monitor_model
# Update view zoom level
for view in self.__container.views:
view.webview.update_zoom_level()
except Exception as e:
Logger.error("Window::update_zoom_level(): %s", e)
def fullscreen(self, force=True):
"""
......
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