Merge pull request #81007 from coumcashier/master
FileSystemDock: Don't update current path on rename when file list has focus
This commit is contained in:
commit
0d4fe74043
|
@ -1789,13 +1789,15 @@ void FileSystemDock::_rename_operation_confirm() {
|
|||
|
||||
EditorSceneTabs::get_singleton()->set_current_tab(current_tab);
|
||||
|
||||
print_verbose("FileSystem: calling rescan.");
|
||||
_rescan();
|
||||
|
||||
if (tree->has_focus()) {
|
||||
current_path = new_path;
|
||||
current_path_line_edit->set_text(current_path);
|
||||
}
|
||||
|
||||
print_verbose("FileSystem: calling rescan.");
|
||||
_rescan();
|
||||
}
|
||||
|
||||
void FileSystemDock::_duplicate_operation_confirm() {
|
||||
String new_name = duplicate_dialog_text->get_text().strip_edges();
|
||||
if (new_name.length() == 0) {
|
||||
|
|
Loading…
Reference in New Issue