You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #44569 from madmiraal/rename-unselect-deselect
Rename unselect to deselect
This commit is contained in:
@@ -136,7 +136,7 @@ void FileDialog::update_dir() {
|
||||
}
|
||||
|
||||
// Deselect any item, to make "Select Current Folder" button text by default.
|
||||
deselect_items();
|
||||
deselect_all();
|
||||
}
|
||||
|
||||
void FileDialog::_dir_entered(String p_dir) {
|
||||
@@ -172,7 +172,7 @@ void FileDialog::_post_popup() {
|
||||
|
||||
// For open dir mode, deselect all items on file dialog open.
|
||||
if (mode == FILE_MODE_OPEN_DIR) {
|
||||
deselect_items();
|
||||
deselect_all();
|
||||
file_box->set_visible(false);
|
||||
} else {
|
||||
file_box->set_visible(true);
|
||||
@@ -318,7 +318,7 @@ void FileDialog::_go_up() {
|
||||
update_dir();
|
||||
}
|
||||
|
||||
void FileDialog::deselect_items() {
|
||||
void FileDialog::deselect_all() {
|
||||
// Clear currently selected items in file manager.
|
||||
tree->deselect_all();
|
||||
|
||||
@@ -808,7 +808,7 @@ void FileDialog::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("_update_file_name"), &FileDialog::update_file_name);
|
||||
ClassDB::bind_method(D_METHOD("_update_dir"), &FileDialog::update_dir);
|
||||
ClassDB::bind_method(D_METHOD("_update_file_list"), &FileDialog::update_file_list);
|
||||
ClassDB::bind_method(D_METHOD("deselect_items"), &FileDialog::deselect_items);
|
||||
ClassDB::bind_method(D_METHOD("deselect_all"), &FileDialog::deselect_all);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("invalidate"), &FileDialog::invalidate);
|
||||
|
||||
@@ -932,7 +932,7 @@ FileDialog::FileDialog() {
|
||||
tree->connect("multi_selected", callable_mp(this, &FileDialog::_tree_multi_selected), varray(), CONNECT_DEFERRED);
|
||||
tree->connect("cell_selected", callable_mp(this, &FileDialog::_tree_selected), varray(), CONNECT_DEFERRED);
|
||||
tree->connect("item_activated", callable_mp(this, &FileDialog::_tree_item_activated), varray());
|
||||
tree->connect("nothing_selected", callable_mp(this, &FileDialog::deselect_items));
|
||||
tree->connect("nothing_selected", callable_mp(this, &FileDialog::deselect_all));
|
||||
dir->connect("text_entered", callable_mp(this, &FileDialog::_dir_entered));
|
||||
file->connect("text_entered", callable_mp(this, &FileDialog::_file_entered));
|
||||
filter->connect("item_selected", callable_mp(this, &FileDialog::_filter_selected));
|
||||
|
||||
Reference in New Issue
Block a user