filechoosernativewin32: Set default extension

This commit is contained in:
robxnano 2023-01-07 18:14:36 +00:00 committed by Mat
parent 254eca269a
commit 0c83807a5a

View File

@ -600,6 +600,10 @@ filechooser_win32_thread (gpointer _data)
if (FAILED (hr))
g_warning_hr ("Can't set file types", hr);
hr = IFileDialog_SetDefaultExtension (pfd, L"");
if (FAILED (hr))
g_warning_hr ("Can't set default extension", hr);
if (data->self->current_filter)
{
GListModel *filters;