Skip to content

Commit

Permalink
Grab focus of renamed file in file system dock
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbrain committed Feb 4, 2024
1 parent b4e2a24 commit e2686e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,11 @@ void FileSystemDock::_rename_operation_confirm() {

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

if (ti) {
tree->set_selected(ti);
tree->grab_focus();
}
}

void FileSystemDock::_duplicate_operation_confirm() {
Expand Down

0 comments on commit e2686e1

Please sign in to comment.