Skip to content

Commit

Permalink
remove temp folder instead of just update file
Browse files Browse the repository at this point in the history
  • Loading branch information
rednir committed Nov 30, 2023
1 parent 7fce847 commit 012a4d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Splash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ private void AutoUpdate()
{
if (!Settings.Content.AutoUpdate || Settings.Content.LastVersion != Settings.VERSION)
{
if (File.Exists(Settings.AutoUpdateInstallerPath))
File.Delete(Settings.AutoUpdateInstallerPath);
foreach (string file in Directory.EnumerateFiles(Settings.TempFolderPath))
File.Delete(file);

LoadSkins();
return;
Expand Down
3 changes: 0 additions & 3 deletions src/Statics/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ public static void InitialiseSettingsFile()
{
Directory.CreateDirectory(TempFolderPath);

foreach (string file in Directory.EnumerateFiles(TempFolderPath))
File.Delete(file);

_httpClient.DefaultRequestHeaders.Add("User-Agent", "osu! skin mixer");
_httpClient.Timeout = TimeSpan.FromSeconds(300);

Expand Down

0 comments on commit 012a4d4

Please sign in to comment.