diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application/Application.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/slskd/Application/Application.cs b/src/slskd/Application/Application.cs index c317f467..6d2bd0bb 100644 --- a/src/slskd/Application/Application.cs +++ b/src/slskd/Application/Application.cs @@ -241,6 +241,13 @@ namespace slskd Logger.Information("Shared directory configuration changed. Shares must be re-scanned for changes to take effect."); } + if (PreviousOptions.Filters.File.Except(newOptions.Filters.File).Any() + || newOptions.Filters.File.Except(PreviousOptions.Filters.File).Any()) + { + StateMonitor.SetValue(state => state with { PendingShareRescan = true }); + Logger.Information("File filter configuration changed. Shares must be re-scanned for changes to take effect."); + } + // determine whether any Soulseek options changed. if so, we need to construct a patch // and invoke ReconfigureOptionsAsync(). var slskDiff = PreviousOptions.Soulseek.DiffWith(newOptions.Soulseek); |
