Skip to content

Commit 97af205

Browse files
committed
[FlashpointInstaller] Fix crash when cancelling installation with open file/folder
1 parent 120357c commit 97af205

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

FlashpointInstaller/src/Forms/Operate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ await Task.Run(() =>
255255
{
256256
while (cancelStatus != 2) { }
257257

258-
if (Directory.Exists(FPM.DestinationPath)) Directory.Delete(FPM.DestinationPath, true);
258+
try { Directory.Delete(FPM.DestinationPath, true); } catch { }
259259
});
260260

261261
TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress, FPM.Main.Handle);

0 commit comments

Comments
 (0)