Skip to content

Commit b3f20cc

Browse files
committed
ref: decorate pyqt slots
1 parent 3c40238 commit b3f20cc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dcoraid/gui/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def __init__(self, *args, **kwargs):
128128

129129
self.status_widget.request_status_update()
130130

131+
@QtCore.pyqtSlot(QtCore.QEvent)
131132
def closeEvent(self, event):
132133
root_logger = logging.getLogger()
133134
while len(root_logger.handlers) > 0:
@@ -179,6 +180,7 @@ def on_action_check_update(self, b):
179180
QtCore.Q_ARG(str, ghrepo),
180181
)
181182

183+
@QtCore.pyqtSlot(dict)
182184
def on_action_check_update_finished(self, mdict):
183185
# cleanup
184186
self._update_thread.quit()

0 commit comments

Comments
 (0)