mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
delayload
This commit is contained in:
parent
3b27faf942
commit
0e80480113
@ -719,7 +719,7 @@ class searchwordW(closeashidewindow):
|
||||
super(searchwordW, self).__init__(parent, globalconfig, "sw_geo")
|
||||
# self.setWindowFlags(self.windowFlags()&~Qt.WindowMinimizeButtonHint)
|
||||
self.getnewsentencesignal.connect(self.getnewsentence)
|
||||
|
||||
|
||||
self.setWindowTitle(_TR("查词"))
|
||||
self.ankiwindow = AnkiWindow()
|
||||
self.setupUi()
|
||||
|
@ -677,12 +677,14 @@ class auto_select_webview(QWidget):
|
||||
super().__init__(parent)
|
||||
self.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
|
||||
self.cantusewebview2 = False
|
||||
self.internal = None
|
||||
self.internal = (
|
||||
QWidget()
|
||||
) # 加个占位的widget,否则等待加载的时候有一瞬间的灰色背景。
|
||||
self.contex = -1
|
||||
layout = QHBoxLayout()
|
||||
layout.setContentsMargins(0, 0, 0, 0)
|
||||
layout.addWidget(self.internal)
|
||||
self.setLayout(layout)
|
||||
self._maybecreate()
|
||||
self.lastcachehtml = None
|
||||
|
||||
def _maybecreate(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user