Skip to content

Commit

Permalink
Change file dialog all files filter name from All Files (*) to All Fi…
Browse files Browse the repository at this point in the history
…les(*.*).
  • Loading branch information
RedMser committed Nov 24, 2024
1 parent 565f72e commit 03b8d49
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/classes/EditorFileDialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion editor/gui/editor_file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ void EditorFileDialog::update_filters() {
}
}

String f = TTR("All Files (*)");
String f = TTR("All Files") + " (*.*)";
filter->add_item(f);
processed_filters.push_back("*.*;" + f);
}
Expand Down
4 changes: 2 additions & 2 deletions platform/linuxbsd/freedesktop_portal_desktop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion platform/windows/display_server_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,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;
Expand Down
2 changes: 1 addition & 1 deletion scene/gui/file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,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);
}
Expand Down

0 comments on commit 03b8d49

Please sign in to comment.