diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-11-05 15:36:42 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-11-05 15:36:42 -0500 |
| commit | f03520a84f7ce90339f0339bb4bd7e7d0d34a856 (patch) | |
| tree | 2c8f1180d2e9994d78d3834d383acd90d482ab18 | |
| parent | ecb49146bc7e2bef442f9c22943292fb3df3a620 (diff) | |
| download | slskd-f03520a84f7ce90339f0339bb4bd7e7d0d34a856.tar.gz | |
update counts when setting hosts
| -rw-r--r-- | src/slskd/Application.cs | 11 |
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; } |
