From 1b83f6f435d79a29d47b821fb48ad15d257d0d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Thu, 20 Jun 2024 01:17:30 +0800 Subject: [PATCH] debug --- LunaTranslator/LunaTranslator/gui/usefulwidget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index 6c33536e..e388c7fc 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -759,7 +759,7 @@ class WebivewWidget(abstractwebview): webview_native_handle_kind_t.WEBVIEW_NATIVE_HANDLE_KIND_BROWSER_CONTROLLER ) - def __init__(self, parent=None, debug=False) -> None: + def __init__(self, parent=None, debug=True) -> None: super().__init__(parent) declare_library_path( os.path.abspath( @@ -1005,7 +1005,7 @@ class auto_select_webview(QWidget): if self.contex == 0: browser = mshtmlWidget() elif self.contex == 1: - browser = WebivewWidget(debug=True) + browser = WebivewWidget() elif self.contex == 2: browser = QWebWrap() except: