Skip to content

Commit

Permalink
Prevent A Possible Bug - Latest Release Edited To Have This Change
Browse files Browse the repository at this point in the history
  • Loading branch information
MistressPlague authored Mar 13, 2021
1 parent 281654b commit 27c9884
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CacheDeleter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ private void AutoDeleteTimer_Tick(object sender, EventArgs e)
{
if (Drive.AvailableSpaceInGB() == 5 || (Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)) + "\\LocalLow\\VRChat\\").GetDirectorySizeInGB() > 19) // Drive Space Is Less Than 5GB Or Cache Is Full
{
AutoDeleteTimer.Stop();
AutoDeleteTimer.Enabled = false;

ClearVRCCache();

AutoDeleteTimer.Enabled = true;
AutoDeleteTimer.Start();
}
}
}
Expand Down

0 comments on commit 27c9884

Please sign in to comment.