This commit is contained in:
恍兮惚兮 2024-06-26 19:53:48 +08:00
parent 5c5437d2aa
commit d8e0df5859
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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)