From 1b2f016a9544d613526493831a87a829ca3d740a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <1173718158@qq.com> Date: Thu, 26 Dec 2024 23:53:34 +0800 Subject: [PATCH] . --- py/LunaTranslator/gui/usefulwidget.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/py/LunaTranslator/gui/usefulwidget.py b/py/LunaTranslator/gui/usefulwidget.py index 25daf709..784a4a4f 100644 --- a/py/LunaTranslator/gui/usefulwidget.py +++ b/py/LunaTranslator/gui/usefulwidget.py @@ -1096,9 +1096,6 @@ class abstractwebview(QWidget): def set_transparent_background(self): pass - def clear(self): - self.navigate("about:blank") - def _parsehtml_codec(self, html): html = """{}""".format( @@ -1493,7 +1490,7 @@ class auto_select_webview(QWidget): def clear(self): self.lastaction = None - self.internal.clear() + self.internal.setHtml(self.internal.parsehtml("")) # 夜间 def navigate(self, url): self.lastaction = 0, url