diff --git a/py/LunaTranslator/gui/usefulwidget.py b/py/LunaTranslator/gui/usefulwidget.py index 25daf70903..784a4a4f86 100644 --- a/py/LunaTranslator/gui/usefulwidget.py +++ b/py/LunaTranslator/gui/usefulwidget.py @@ -1096,9 +1096,6 @@ def eval(self, js, retsaver=None): def set_transparent_background(self): pass - def clear(self): - self.navigate("about:blank") - def _parsehtml_codec(self, html): html = """{}""".format( @@ -1493,7 +1490,7 @@ def add_menu(self, index, label, callback): def clear(self): self.lastaction = None - self.internal.clear() + self.internal.setHtml(self.internal.parsehtml("")) # 夜间 def navigate(self, url): self.lastaction = 0, url