| 517 | } |
| 518 | |
| 519 | void ActuallyMoveFile(const Path& oldPath, Path newPath) |
| 520 | { |
| 521 | QueueJob( |
| 522 | [this, oldPath, newPath]() mutable |
| 523 | { |
| 524 | newPath = ResolveFileConflicts_WT(newPath); |
| 525 | if (newPath.empty()) |
| 526 | return; |
| 527 | |
| 528 | _filesystem->moveFile(oldPath, newPath); |
| 529 | |
| 530 | auto dirent = _filesystem->getDirent(newPath); |
| 531 | runOnUiThread( |
| 532 | [&]() |
| 533 | { |
| 534 | _filesystemModel->Delete(oldPath); |
| 535 | _filesystemModel->Add(dirent); |
| 536 | UpdateFilesystemData(); |
| 537 | }); |
| 538 | }); |
| 539 | } |
| 540 | |
| 541 | void OnBrowserNewDirectoryMenuItem(wxCommandEvent& event) override |
| 542 | { |