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