mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +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)
|
public void RemoveEntry(IConsoleEntry entry)
|
||||||
{
|
{
|
||||||
ArgumentNullException.ThrowIfNull(entry);
|
ArgumentNullException.ThrowIfNull(entry);
|
||||||
|
|
||||||
|
if (!this.entries.Remove(entry.Name))
|
||||||
|
throw new EntryNotFoundException(entry.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue