From 57ebf26f15e8a34e4e2a2bd3bf5851e7ff858120 Mon Sep 17 00:00:00 2001 From: robxnano <91250-robxnano@users.noreply.gitlab.gnome.org> Date: Sat, 7 Jan 2023 18:14:36 +0000 Subject: [PATCH] filechoosernativewin32: Set default extension --- gtk/gtkfilechoosernativewin32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkfilechoosernativewin32.c b/gtk/gtkfilechoosernativewin32.c index 3362477736..a75d929415 100644 --- a/gtk/gtkfilechoosernativewin32.c +++ b/gtk/gtkfilechoosernativewin32.c @@ -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;