aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 5e8da061..8edacac6 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -1063,7 +1063,16 @@ namespace slskd
// have also happened above. a change in hosts will invalidate the cache, so do that too.
if (previous.Hosts.ToJson() != current.Hosts.ToJson())
{
- State.SetValue(state => state with { Shares = state.Shares with { Hosts = current.Hosts } });
+ State.SetValue(state => state with
+ {
+ Shares = state.Shares with
+ {
+ Hosts = current.Hosts,
+ Directories = current.Directories,
+ Files = current.Files,
+ },
+ });
+
rebuildBrowseCache = true;
}