Skip to content

Commit bf4a5fc

Browse files
Fixed crash after canceling file-open.
Ran into this after clicking Cancel on the prompt to choose which program to open a .ws file with.
1 parent 4338fb5 commit bf4a5fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

WitcherScriptMerger/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public static bool TryOpenFile(string path)
7272
Process.Start(startInfo);
7373
}
7474
else
75-
Process.Start(path);
75+
try { Process.Start(path); }
76+
catch (Exception) { }
7677

7778
return true;
7879
}

0 commit comments

Comments
 (0)