You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Use processed filter list for native dialogs.
This commit is contained in:
@@ -394,7 +394,7 @@ Error FreeDesktopPortalDesktop::file_dialog_show(DisplayServer::WindowID p_windo
|
||||
} else {
|
||||
if (flt == "*.*") {
|
||||
filter_exts.push_back("*");
|
||||
filter_names.push_back(RTR("All Files"));
|
||||
filter_names.push_back(RTR("All Files") + " (*)");
|
||||
} else {
|
||||
filter_exts.push_back(flt);
|
||||
filter_names.push_back(flt);
|
||||
@@ -405,7 +405,7 @@ Error FreeDesktopPortalDesktop::file_dialog_show(DisplayServer::WindowID p_windo
|
||||
}
|
||||
if (filter_names.is_empty()) {
|
||||
filter_exts.push_back("*");
|
||||
filter_names.push_back(RTR("All Files"));
|
||||
filter_names.push_back(RTR("All Files") + " (*)");
|
||||
}
|
||||
|
||||
DBusError err;
|
||||
|
||||
Reference in New Issue
Block a user