Always pop DalamudStandard style if pushed earlier in Draw

This commit is contained in:
nebel 2025-12-10 23:12:44 +09:00
parent e53ccdbcc0
commit b88a6bb616
No known key found for this signature in database

View file

@ -672,16 +672,13 @@ public abstract class Window
Task.FromResult<IDalamudTextureWrap>(tex)); Task.FromResult<IDalamudTextureWrap>(tex));
} }
if (!this.hasError) if (isErrorStylePushed)
{ {
this.PostDraw(); Style.StyleModelV1.DalamudStandard.Pop();
} }
else else
{ {
if (isErrorStylePushed) this.PostDraw();
{
Style.StyleModelV1.DalamudStandard.Pop();
}
} }
this.PostHandlePreset(persistence); this.PostHandlePreset(persistence);