Skip to content

Commit c9a0f89

Browse files
committed
Fixed updater exception due to directory being not empty
1 parent 7fc9b35 commit c9a0f89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Arma.Studio/UI/Windows/UpdateDialogDataContext.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.ComponentModel;
44
using System.Diagnostics;
55
using System.IO;
6+
using System.Linq;
67
using System.Threading.Tasks;
78
using System.Windows;
89
using System.Windows.Input;
@@ -181,7 +182,7 @@ public void OnInitialized(FrameworkElement sender, EventArgs e)
181182
{
182183
File.Delete(it);
183184
}
184-
foreach (string it in Directory.GetDirectories(dir))
185+
foreach (string it in Directory.GetDirectories(dir).OrderBy((it) => it.Length))
185186
{
186187
Directory.Delete(it);
187188
}

0 commit comments

Comments
 (0)