Skip to content

Commit

Permalink
Merge pull request #1223 from justincui/patch-inital-directory-for-op…
Browse files Browse the repository at this point in the history
…en-folder-dialog

bugfix: set the inital directory for open folder dialog
  • Loading branch information
r0x0r authored Sep 22, 2023
2 parents 8a2095e + 9189bef commit b092184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webview/platforms/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def on_confirmation_dialog(self, title, message, uuid):
def on_file_dialog(self, dialog_type, directory, allow_multiple, save_filename, file_filter):
if dialog_type == FOLDER_DIALOG:
self._file_name = QFileDialog.getExistingDirectory(
self, self.localization['linux.openFolder'], options=QFileDialog.ShowDirsOnly
self, self.localization['linux.openFolder'], directory, options=QFileDialog.ShowDirsOnly
)
elif dialog_type == OPEN_DIALOG:
if allow_multiple:
Expand Down

0 comments on commit b092184

Please sign in to comment.