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

Change file dialog all files filter name from All Files (*) to All Files(*.*).

This commit is contained in:
Pāvels Nadtočajevs
2024-11-24 20:09:05 +02:00
parent 0c45ace151
commit 1d43fa9a64
5 changed files with 6 additions and 6 deletions

View File

@@ -40,7 +40,7 @@
<method name="clear_filters">
<return type="void" />
<description>
Removes all filters except for "All Files (*)".
Removes all filters except for "All Files (*.*)".
</description>
</method>
<method name="get_line_edit">

View File

@@ -1193,7 +1193,7 @@ void EditorFileDialog::update_filters() {
}
}
String f = TTR("All Files (*)");
String f = TTR("All Files") + " (*.*)";
filter->add_item(f);
processed_filters.push_back("*.*;" + f);
}

View File

@@ -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;

View File

@@ -505,7 +505,7 @@ void DisplayServerWindows::_thread_fd_monitor(void *p_ud) {
}
if (filter_names.is_empty()) {
filter_exts.push_back(String("*.*").utf16());
filter_names.push_back((RTR("All Files") + " (*)").utf16());
filter_names.push_back((RTR("All Files") + " (*.*)").utf16());
}
Vector<COMDLG_FILTERSPEC> filters;

View File

@@ -896,7 +896,7 @@ void FileDialog::update_filters() {
}
}
String f = atr(ETR("All Files")) + " (*)";
String f = atr(ETR("All Files")) + " (*.*)";
filter->add_item(f);
processed_filters.push_back("*.*;" + f);
}