mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
5c5437d2aa
commit
d8e0df5859
@ -375,6 +375,8 @@ class hookselect(closeashidewindow):
|
|||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
super(hookselect, self).__init__(parent, globalconfig["selecthookgeo"])
|
super(hookselect, self).__init__(parent, globalconfig["selecthookgeo"])
|
||||||
self.setupUi()
|
self.setupUi()
|
||||||
|
self.save = []
|
||||||
|
self.hidesearchhookbuttons()
|
||||||
self.changeprocessclearsignal.connect(self.changeprocessclear)
|
self.changeprocessclearsignal.connect(self.changeprocessclear)
|
||||||
self.removehooksignal.connect(self.removehook)
|
self.removehooksignal.connect(self.removehook)
|
||||||
self.addnewhooksignal.connect(self.addnewhook)
|
self.addnewhooksignal.connect(self.addnewhook)
|
||||||
|
@ -311,8 +311,7 @@ class lazyscrollflow(ScrollArea):
|
|||||||
|
|
||||||
def directshow(self):
|
def directshow(self):
|
||||||
QApplication.processEvents()
|
QApplication.processEvents()
|
||||||
if len(self.internalwid.visibleRegion().rects()):
|
self.doshowlazywidget(True, self.internalwid.visibleRegion().boundingRect())
|
||||||
self.doshowlazywidget(True, self.internalwid.visibleRegion().rects()[0])
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
@ -624,11 +623,11 @@ class stackedlist(ScrollArea):
|
|||||||
|
|
||||||
def directshow(self):
|
def directshow(self):
|
||||||
QApplication.processEvents()
|
QApplication.processEvents()
|
||||||
self.doshowlazywidget(True, self.internal.visibleRegion().rects()[0])
|
self.doshowlazywidget(True, self.internal.visibleRegion().boundingRect())
|
||||||
|
|
||||||
def resizeEvent(self, e: QResizeEvent):
|
def resizeEvent(self, e: QResizeEvent):
|
||||||
try:
|
try:
|
||||||
self.doshowlazywidget(False, self.internal.visibleRegion().rects()[0])
|
self.doshowlazywidget(False, self.internal.visibleRegion().boundingRect())
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return super().resizeEvent(e)
|
return super().resizeEvent(e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user