Skip to content

Commit

Permalink
fixed thread caused crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkadySK committed Jun 22, 2022
1 parent 4f5bbf1 commit b9e5a23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GbxMapBrowser/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -619,12 +619,12 @@ await Task.Run(() =>
break;
case "Rename file":
var oldMapName = selItem.FullPath;
await Task.Run(() => FileOperations.RenameFile(oldMapName));
FileOperations.RenameFile(oldMapName);
await UpdateMapList(curFolder);
break;
case "Rename folder":
var oldName = selItem.FullPath;
await Task.Run(() => FileOperations.RenameFolder(oldName));
FileOperations.RenameFolder(oldName);
await UpdateMapList(curFolder);
break;
case "Rename map":
Expand Down

0 comments on commit b9e5a23

Please sign in to comment.