新开窗口同步缩放系数

master 0.4.0
yutent 2023-09-06 17:29:35 +08:00
parent 8822c8effd
commit c885d72b8f
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ class WebEngine(WebKit2.WebView):
win = Gtk.Window() win = Gtk.Window()
web = WebEngine(win) web = WebEngine(win)
web.set_settings(self.get_settings()) web.set_settings(self.get_settings())
web.set_zoom_level(self.get_zoom_level())
web.load_request(req) web.load_request(req)
win.set_default_size(w, h) win.set_default_size(w, h)
win.add(web) win.add(web)