Skip to content

Commit

Permalink
Fix bug in desktop wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Aug 5, 2020
1 parent 1bb0d6f commit 950f8db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Desktop.Win.Wrapper/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ private void ExtractRemotely()
try
{
var currentVersionDir = Path.GetDirectoryName(targetExePath);
Directory.Delete(currentVersionDir, true);
if (Directory.Exists(currentVersionDir))
{
Directory.Delete(currentVersionDir, true);
}
Directory.CreateDirectory(currentVersionDir);
ZipFile.ExtractToDirectory(zipPath, currentVersionDir);
}
Expand Down

0 comments on commit 950f8db

Please sign in to comment.