Skip to content

Commit

Permalink
Merge pull request #81007 from coumcashier/master
Browse files Browse the repository at this point in the history
FileSystemDock: Don't update current path on rename when file list has focus
  • Loading branch information
akien-mga committed Oct 2, 2023
2 parents e95b7e8 + 58af068 commit 0d4fe74
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1789,11 +1789,13 @@ void FileSystemDock::_rename_operation_confirm() {

EditorSceneTabs::get_singleton()->set_current_tab(current_tab);

if (tree->has_focus()) {
current_path = new_path;
current_path_line_edit->set_text(current_path);
}

print_verbose("FileSystem: calling rescan.");
_rescan();

current_path = new_path;
current_path_line_edit->set_text(current_path);
}

void FileSystemDock::_duplicate_operation_confirm() {
Expand Down

0 comments on commit 0d4fe74

Please sign in to comment.