Browse Source

Always setup checkpoint folders just to be safe

pull/55/head
JT 1 year ago
parent
commit
9eae1fd089
  1. 9
      StabilityMatrix.Avalonia/ViewModels/CheckpointsPageViewModel.cs

9
StabilityMatrix.Avalonia/ViewModels/CheckpointsPageViewModel.cs

@ -129,12 +129,9 @@ public partial class CheckpointsPageViewModel : PageViewModelBase
CheckpointFolders.Clear();
return;
}
// Skip if the shared folder root doesn't exist
if (!Directory.Exists(modelsDirectory))
{
await Task.Run(() => sharedFolders.SetupSharedModelFolders());
}
// Setup shared folders in case they're missing
sharedFolders.SetupSharedModelFolders();
var folders = Directory.GetDirectories(modelsDirectory);

Loading…
Cancel
Save