Skip to content

Commit

Permalink
Fixed updater exception due to directory being not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
X39 committed Mar 15, 2020
1 parent 7fc9b35 commit c9a0f89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Arma.Studio/UI/Windows/UpdateDialogDataContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
Expand Down Expand Up @@ -181,7 +182,7 @@ public void OnInitialized(FrameworkElement sender, EventArgs e)
{
File.Delete(it);
}
foreach (string it in Directory.GetDirectories(dir))
foreach (string it in Directory.GetDirectories(dir).OrderBy((it) => it.Length))
{
Directory.Delete(it);
}
Expand Down

0 comments on commit c9a0f89

Please sign in to comment.