aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-03-15 15:35:41 -0500
committerJP Dillingham <jp@dillingham.me>2026-03-15 15:35:41 -0500
commit95a9480978b1cc413fb493d92ed858c05d5f509a (patch)
tree5fb884374e378a569ba84c40bffd2d2d668ef80e /src
parent83d10be53819a2185e8dc514e96ea6f76f87aa60 (diff)
downloadslskd-95a9480978b1cc413fb493d92ed858c05d5f509a.tar.gz
update option diff logic to include only upload/download settings
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 5519eeac..5a81ae8f 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -1482,9 +1482,12 @@ namespace slskd
// determine whether any Soulseek options changed. if so, we need to construct a patch and invoke ReconfigureOptionsAsync().
var slskDiff = PreviousOptions.Soulseek.DiffWith(newOptions.Soulseek);
- var globalDiff = PreviousOptions.Transfers.DiffWith(newOptions.Transfers);
- if (slskDiff.Any() || globalDiff.Any())
+ // determine whether any global upload or download options changed
+ var transfersUploadDiff = PreviousOptions.Transfers.DiffWith(newOptions.Transfers.Upload);
+ var transfersDownloadDiff = PreviousOptions.Transfers.DiffWith(newOptions.Transfers.Download);
+
+ if (slskDiff.Any() || transfersUploadDiff.Any() || transfersDownloadDiff.Any())
{
var old = PreviousOptions.Soulseek;
var update = newOptions.Soulseek;