diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-04-21 18:11:22 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-04-21 18:11:22 -0500 |
| commit | c9c01ad332a22cb190810f437d1bc17306a9982d (patch) | |
| tree | a421b6468b15c1027e243bb6c3ff498be08baf5f | |
| parent | 8191c984c52e886c3fba40c7fdcc48f9382abf46 (diff) | |
| download | slskd-c9c01ad332a22cb190810f437d1bc17306a9982d.tar.gz | |
add Clear()
| -rw-r--r-- | src/slskd/Core/Blacklist.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Core/Blacklist.cs b/src/slskd/Core/Blacklist.cs index 857b9002..f9504c52 100644 --- a/src/slskd/Core/Blacklist.cs +++ b/src/slskd/Core/Blacklist.cs @@ -154,6 +154,11 @@ public class Blacklist } /// <summary> + /// Clears the contents of the Blacklist. + /// </summary> + public virtual void Clear() => Cache.Clear(); + + /// <summary> /// Loads the contents of the specified <paramref name="filename"/> into the Blacklist. /// </summary> /// <remarks> |
