1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #111529 from wagnerfs/fix-windows-native-filedialog-filters

Fix Windows native FileDialog filters not showing descriptions
This commit is contained in:
Thaddeus Crews
2025-10-13 12:30:05 -05:00
2 changed files with 12 additions and 11 deletions

View File

@@ -555,7 +555,7 @@ void DisplayServerWindows::_thread_fd_monitor(void *p_ud) {
if (!exts.is_empty()) {
String str = String(";").join(exts);
filter_exts.push_back(str.utf16());
if (tokens.size() == 2) {
if (tokens.size() >= 2) {
filter_names.push_back(tokens[1].strip_edges().utf16());
} else {
filter_names.push_back(str.utf16());