Implement file dialog default extension in mac & gtk #390
Labels
help wanted
has no one working on it yet
shell/gtk
concerns the GTK backend
shell/mac
concerns the macOS backend
The
FileDialogOptions
struct has a fielddefault_type: Option<FileSpec>
that specifies which of the types inallowed_types: Option<Vec<FileSpec>>
is the default. If nodefault_type
is specified or ifdefault_type
isn't actually amongallowed_types
then the first entry ofallowed_types
is the default.PR #387 implemented it for Windows. In Windows
allowed_types
translate into a dropdown control in the file picker dialog anddefault_type
determines which item in that dropdown is preselected.This behavior needs to also be implemented in the
mac
andgtk
platform code. If this behavior can't be implemented or doesn't make sense on the platform, then comments describing that are definitely welcome.The text was updated successfully, but these errors were encountered: