mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
rename: don't update current path when file list has focus
FileSystemDock: Don't update current path and path edit when the file list has focus. So that when renaming from the file list, we don't cd into the renamed folder automatically.
This commit is contained in:
parent
0ca8542329
commit
58af0688d3
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user