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