Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Dec 26, 2024
1 parent 07cf4b7 commit 1b2f016
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions py/LunaTranslator/gui/usefulwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /></head>{}</html>""".format(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b2f016

Please sign in to comment.