mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Seperate filter and description in FileDialog.add_filter()
This commit is contained in:
parent
d26442e709
commit
af19501cc7
26 changed files with 59 additions and 48 deletions
|
@ -993,7 +993,7 @@ EditorFeatureProfileManager::EditorFeatureProfileManager() {
|
|||
import_profiles = memnew(EditorFileDialog);
|
||||
add_child(import_profiles);
|
||||
import_profiles->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_FILES);
|
||||
import_profiles->add_filter("*.profile; " + TTR("Godot Feature Profile"));
|
||||
import_profiles->add_filter("*.profile", TTR("Godot Feature Profile"));
|
||||
import_profiles->connect("files_selected", callable_mp(this, &EditorFeatureProfileManager::_import_profiles));
|
||||
import_profiles->set_title(TTR("Import Profile(s)"));
|
||||
import_profiles->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
|
||||
|
@ -1001,7 +1001,7 @@ EditorFeatureProfileManager::EditorFeatureProfileManager() {
|
|||
export_profile = memnew(EditorFileDialog);
|
||||
add_child(export_profile);
|
||||
export_profile->set_file_mode(EditorFileDialog::FILE_MODE_SAVE_FILE);
|
||||
export_profile->add_filter("*.profile; " + TTR("Godot Feature Profile"));
|
||||
export_profile->add_filter("*.profile", TTR("Godot Feature Profile"));
|
||||
export_profile->connect("file_selected", callable_mp(this, &EditorFeatureProfileManager::_export_profile));
|
||||
export_profile->set_title(TTR("Export Profile"));
|
||||
export_profile->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue