mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
feat: dispose scratches
This commit is contained in:
parent
39b281f334
commit
5d1537b3ed
2 changed files with 7 additions and 1 deletions
|
|
@ -390,6 +390,7 @@ namespace Dalamud.Interface
|
|||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
this.scratchpadWindow.Dispose();
|
||||
this.windowSystem.RemoveAllWindows();
|
||||
|
||||
this.logWindow?.Dispose();
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ using Serilog;
|
|||
|
||||
namespace Dalamud.Interface.Scratchpad
|
||||
{
|
||||
class ScratchpadWindow : Window
|
||||
class ScratchpadWindow : Window, IDisposable
|
||||
{
|
||||
private readonly Dalamud dalamud;
|
||||
|
||||
|
|
@ -166,5 +166,10 @@ namespace Dalamud.Interface.Scratchpad
|
|||
ImGui.EndTabBar();
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
this.Execution.DisposeAllScratches();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue