Skip to content

Commit

Permalink
Reordered parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiomat85 committed May 23, 2024
1 parent 0c83ef7 commit 0c39dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nion/swift/ExportDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class ExportDialogViewModel:
directory: Model.PropertyModel[str]
writer: Model.PropertyModel[ImportExportManager.ImportExportHandler]

def __init__(self, title: bool, date: bool, dimensions: bool, sequence: bool, prefix: str = "", directory: str = "", writer: ImportExportManager.ImportExportHandler = None):
def __init__(self, title: bool, date: bool, dimensions: bool, sequence: bool, writer: ImportExportManager.ImportExportHandler, prefix: str = "", directory: str = ""):
self.include_title = Model.PropertyModel(title)
self.include_date = Model.PropertyModel(date)
self.include_dimensions = Model.PropertyModel(dimensions)
Expand All @@ -71,7 +71,7 @@ def __init__(self, ui: UserInterface.UserInterface, parent_window: Window.Window
self.directory = self.ui.get_persistent_string("export_directory", self.ui.get_document_location())
self.writer = ImportExportManager.ImportExportManager().get_writer_by_id(io_handler_id)

self.viewmodel = ExportDialogViewModel(True, True, True, True, "", self.directory, self.writer)
self.viewmodel = ExportDialogViewModel(True, True, True, True, self.writer, "", self.directory)
u = Declarative.DeclarativeUI()
self._build_ui(u)

Expand Down

0 comments on commit 0c39dc5

Please sign in to comment.