mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24: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)
|
self.internal.navigate(url)
|
||||||
|
|
||||||
def setHtml(self, html):
|
def setHtml(self, html):
|
||||||
html = self.internal.parsehtml(html)
|
|
||||||
self._maybecreate()
|
self._maybecreate()
|
||||||
self.clearcache()
|
self.clearcache()
|
||||||
|
html = self.internal.parsehtml(html)
|
||||||
if len(html) < 1 * 1024 * 1024: # 1mb
|
if len(html) < 1 * 1024 * 1024: # 1mb
|
||||||
self.internal.setHtml(html)
|
self.internal.setHtml(html)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user