Browse Source

Skip index if image dir not exist

pull/165/head
Ionite 1 year ago
parent
commit
5d6791f1e1
No known key found for this signature in database
  1. 4
      StabilityMatrix.Core/Services/ImageIndexService.cs

4
StabilityMatrix.Core/Services/ImageIndexService.cs

@ -38,6 +38,10 @@ public class ImageIndexService : IImageIndexService
public async Task RefreshIndex(string subPath = "")
{
var imagesDir = settingsManager.ImagesDirectory;
if (!imagesDir.Exists)
{
return;
}
// Start
var stopwatch = Stopwatch.StartNew();

Loading…
Cancel
Save