mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
console: support removing entries
This commit is contained in:
parent
34d1041a69
commit
2bee234257
1 changed files with 3 additions and 0 deletions
|
|
@ -118,6 +118,9 @@ internal partial class ConsoleManager : IServiceType
|
|||
public void RemoveEntry(IConsoleEntry entry)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(entry);
|
||||
|
||||
if (!this.entries.Remove(entry.Name))
|
||||
throw new EntryNotFoundException(entry.Name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue