mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
shit
This commit is contained in:
parent
0e80480113
commit
b240e376f6
@ -649,9 +649,9 @@ class auto_select_webview(QWidget):
|
||||
self.internal.navigate(url)
|
||||
|
||||
def setHtml(self, html):
|
||||
html = self.internal.parsehtml(html)
|
||||
self._maybecreate()
|
||||
self.clearcache()
|
||||
html = self.internal.parsehtml(html)
|
||||
if len(html) < 1 * 1024 * 1024: # 1mb
|
||||
self.internal.setHtml(html)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user