diff --git a/Shokofin/Configuration/MediaFolderConfigurationService.cs b/Shokofin/Configuration/MediaFolderConfigurationService.cs index 6b122413..fe902fe6 100644 --- a/Shokofin/Configuration/MediaFolderConfigurationService.cs +++ b/Shokofin/Configuration/MediaFolderConfigurationService.cs @@ -129,10 +129,11 @@ private void OnUsageTrackerStalled(object? sender, EventArgs eventArgs) private void EditLibraries(bool shouldScheduleLibraryScan) { lock (LockObj) { + ShouldGenerateAllConfigurations = true; + if (LibraryEdits.Count is 0) return; - ShouldGenerateAllConfigurations = true; var libraryEdits = LibraryEdits.ToList(); LibraryEdits.Clear(); foreach (var (libraryId, (libraryName, add, remove)) in libraryEdits) {