Skip to content

Commit

Permalink
Fixed exception on exit if cache directory does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Asnivor committed Feb 13, 2017
1 parent 0cb5235 commit 82bbe05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MedLaunch/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2709,7 +2709,11 @@ private void MW_Closing(object sender, CancelEventArgs e)
GlobalSettings gs = GlobalSettings.GetGlobals();
if (gs.enableClearCacheOnExit == true)
{
FileAndFolder.ClearFolder(AppDomain.CurrentDomain.BaseDirectory + "Data\\Cache");
if (Directory.Exists(AppDomain.CurrentDomain.BaseDirectory + "Data\\Cache"))
{
FileAndFolder.ClearFolder(AppDomain.CurrentDomain.BaseDirectory + "Data\\Cache");
}

}

}
Expand Down

0 comments on commit 82bbe05

Please sign in to comment.