mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 13:53: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>
|
/// </summary>
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
|
this.scratchpadWindow.Dispose();
|
||||||
this.windowSystem.RemoveAllWindows();
|
this.windowSystem.RemoveAllWindows();
|
||||||
|
|
||||||
this.logWindow?.Dispose();
|
this.logWindow?.Dispose();
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ using Serilog;
|
||||||
|
|
||||||
namespace Dalamud.Interface.Scratchpad
|
namespace Dalamud.Interface.Scratchpad
|
||||||
{
|
{
|
||||||
class ScratchpadWindow : Window
|
class ScratchpadWindow : Window, IDisposable
|
||||||
{
|
{
|
||||||
private readonly Dalamud dalamud;
|
private readonly Dalamud dalamud;
|
||||||
|
|
||||||
|
|
@ -166,5 +166,10 @@ namespace Dalamud.Interface.Scratchpad
|
||||||
ImGui.EndTabBar();
|
ImGui.EndTabBar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
this.Execution.DisposeAllScratches();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue