Skip to content

Commit

Permalink
Pass the on_result argument to the parent FileDialog constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed May 22, 2023
1 parent 34b18f6 commit f8c1867
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cocoa/src/toga_cocoa/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def __init__(
initial_directory=initial_directory,
file_types=None, # File types aren't offered by Cocoa save panels.
multiselect=False,
on_result=None,
on_result=on_result,
)

def create_panel(self, multiselect):
Expand All @@ -274,7 +274,7 @@ def __init__(
initial_directory=initial_directory,
file_types=file_types,
multiselect=multiselect,
on_result=None,
on_result=on_result,
)

def create_panel(self, multiselect):
Expand All @@ -294,7 +294,7 @@ def __init__(self, window, title, initial_directory, multiselect, on_result=None
initial_directory=initial_directory,
file_types=None,
multiselect=multiselect,
on_result=None,
on_result=on_result,
)

def create_panel(self, multiselect):
Expand Down

0 comments on commit f8c1867

Please sign in to comment.