Skip to content

Commit

Permalink
Merge pull request #55 from Carifio24/start-worker-signature
Browse files Browse the repository at this point in the history
Update start_worker signature
  • Loading branch information
Carifio24 authored Sep 19, 2024
2 parents 63292b1 + 8030e6b commit 35c7112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glue_ar/qt/export_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ def activate(self):
filepath=export_path,
compression=dialog.state.compression)

def _start_worker(self, *args, **kwargs):
def _start_worker(self, exporter, **kwargs):
_, ext = splitext(kwargs["filepath"])
ext = ext[1:]
filetype = _FILETYPE_NAMES.get(ext, None)
worker = Worker(*args, **kwargs)
worker = Worker(exporter, **kwargs)
exporting_dialog = ExportingDialog(parent=self.viewer, filetype=filetype)
worker.result.connect(exporting_dialog.close)
worker.error.connect(exporting_dialog.close)
Expand Down

0 comments on commit 35c7112

Please sign in to comment.