Skip to content

Commit

Permalink
wrong order there
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Apr 9, 2024
1 parent 7c20786 commit 472be52
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/asammdf/gui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,15 @@ class WorkerSignals(QtCore.QObject):

class Worker(QtCore.QRunnable):
def __init__(self, function, *args, **kwargs):
args = inspect.signature(function)
if "progress" in args.parameters:
kwargs["progress"] = self

super().__init__()
self.function = function
self.args = args

args = inspect.signature(function)
if "progress" in args.parameters:
kwargs["progress"] = self

self.kwargs = kwargs
self.signals = WorkerSignals()
self.stop = False
Expand Down

0 comments on commit 472be52

Please sign in to comment.