mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 19:11:33 +00:00
Merge pull request #99644 from bruvzg/fd_all_name
Change file dialog all files filter name from `All Files (*)` to `All Files (*.*)`.
This commit is contained in:
commit
60e1490df1
5 changed files with 6 additions and 6 deletions
|
|
@ -46,7 +46,7 @@
|
||||||
<method name="clear_filters">
|
<method name="clear_filters">
|
||||||
<return type="void" />
|
<return type="void" />
|
||||||
<description>
|
<description>
|
||||||
Removes all filters except for "All Files (*)".
|
Removes all filters except for "All Files (*.*)".
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_filename_filter" qualifiers="const">
|
<method name="get_filename_filter" qualifiers="const">
|
||||||
|
|
|
||||||
|
|
@ -1204,7 +1204,7 @@ void EditorFileDialog::update_filters() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String f = TTR("All Files (*)");
|
String f = TTR("All Files") + " (*.*)";
|
||||||
filter->add_item(f);
|
filter->add_item(f);
|
||||||
processed_filters.push_back("*.*;" + f);
|
processed_filters.push_back("*.*;" + f);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -399,7 +399,7 @@ Error FreeDesktopPortalDesktop::file_dialog_show(DisplayServer::WindowID p_windo
|
||||||
} else {
|
} else {
|
||||||
if (flt == "*.*") {
|
if (flt == "*.*") {
|
||||||
filter_exts.push_back("*");
|
filter_exts.push_back("*");
|
||||||
filter_names.push_back(RTR("All Files") + " (*)");
|
filter_names.push_back(RTR("All Files") + " (*.*)");
|
||||||
} else {
|
} else {
|
||||||
filter_exts.push_back(flt);
|
filter_exts.push_back(flt);
|
||||||
filter_names.push_back(flt);
|
filter_names.push_back(flt);
|
||||||
|
|
@ -410,7 +410,7 @@ Error FreeDesktopPortalDesktop::file_dialog_show(DisplayServer::WindowID p_windo
|
||||||
}
|
}
|
||||||
if (filter_names.is_empty()) {
|
if (filter_names.is_empty()) {
|
||||||
filter_exts.push_back("*");
|
filter_exts.push_back("*");
|
||||||
filter_names.push_back(RTR("All Files") + " (*)");
|
filter_names.push_back(RTR("All Files") + " (*.*)");
|
||||||
}
|
}
|
||||||
|
|
||||||
DBusError err;
|
DBusError err;
|
||||||
|
|
|
||||||
|
|
@ -505,7 +505,7 @@ void DisplayServerWindows::_thread_fd_monitor(void *p_ud) {
|
||||||
}
|
}
|
||||||
if (filter_names.is_empty()) {
|
if (filter_names.is_empty()) {
|
||||||
filter_exts.push_back(String("*.*").utf16());
|
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;
|
Vector<COMDLG_FILTERSPEC> filters;
|
||||||
|
|
|
||||||
|
|
@ -896,7 +896,7 @@ void FileDialog::update_filters() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
String f = atr(ETR("All Files")) + " (*)";
|
String f = atr(ETR("All Files")) + " (*.*)";
|
||||||
filter->add_item(f);
|
filter->add_item(f);
|
||||||
processed_filters.push_back("*.*;" + f);
|
processed_filters.push_back("*.*;" + f);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue