You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Seperate filter and description in FileDialog.add_filter()
This commit is contained in:
@@ -2080,7 +2080,7 @@ ThemeItemEditorDialog::ThemeItemEditorDialog(ThemeTypeEditor *p_theme_type_edito
|
||||
List<String> ext;
|
||||
ResourceLoader::get_recognized_extensions_for_type("Theme", &ext);
|
||||
for (const String &E : ext) {
|
||||
import_another_theme_dialog->add_filter(vformat("*.%s; %s", E, TTR("Theme Resource")));
|
||||
import_another_theme_dialog->add_filter("*." + E, TTR("Theme Resource"));
|
||||
}
|
||||
import_another_file_hb->add_child(import_another_theme_dialog);
|
||||
import_another_theme_dialog->connect("file_selected", callable_mp(this, &ThemeItemEditorDialog::_select_another_theme_cbk));
|
||||
@@ -3663,7 +3663,7 @@ ThemeEditor::ThemeEditor() {
|
||||
List<String> ext;
|
||||
ResourceLoader::get_recognized_extensions_for_type("PackedScene", &ext);
|
||||
for (const String &E : ext) {
|
||||
preview_scene_dialog->add_filter(vformat("*.%s; %s", E, TTR("Scene")));
|
||||
preview_scene_dialog->add_filter("*." + E, TTR("Scene"));
|
||||
}
|
||||
main_hs->add_child(preview_scene_dialog);
|
||||
preview_scene_dialog->connect("file_selected", callable_mp(this, &ThemeEditor::_preview_scene_dialog_cbk));
|
||||
|
||||
Reference in New Issue
Block a user