Fix Windows native FileDialog filters not showing descriptions

This commit is contained in:
Wagner 2025-10-11 18:50:09 -03:00
parent cb7cd815ee
commit f835707f7a
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());