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

View File

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