filechoosernativewin32: Set default extension

This commit is contained in:
robxnano 2023-01-07 18:14:36 +00:00 committed by Matthias Clasen
parent 7d34e7e0f7
commit 57ebf26f15

View File

@ -602,6 +602,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;