Skip to content

Commit

Permalink
Merge pull request #142 from kishikawakatsumi/rename
Browse files Browse the repository at this point in the history
Reload after renaming
  • Loading branch information
kishikawakatsumi authored Sep 18, 2024
2 parents c78f232 + 79e52a1 commit 8daed39
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ extension FilesViewController: NSTextFieldDelegate {
Task { @MainActor in
do {
try await client.rename(from: node.path, to: join(dirname(node.path), textField.stringValue))
await dirTree.reload(directory: dirname(node.path), outlineView)
} catch {
textField.stringValue = node.name
NSAlert(error: error).runModal()
Expand Down

0 comments on commit 8daed39

Please sign in to comment.