Compare commits

...

2 commits

Author SHA1 Message Date
goat
e07bda7e58
Merge pull request #2500 from nebel/window-error-pop-dalamud-style
Some checks failed
Build Dalamud / Build on Windows (push) Waiting to run
Build Dalamud / Check API Compatibility (push) Blocked by required conditions
Build Dalamud / Deploy dalamud-distrib staging (push) Blocked by required conditions
Rollup changes to next version / check (api14) (push) Failing after 4s
Tag Build / Tag Build (push) Successful in 2s
Always pop DalamudStandard style if pushed earlier in Draw
2025-12-10 15:26:12 +01:00
nebel
b88a6bb616
Always pop DalamudStandard style if pushed earlier in Draw 2025-12-10 23:12:44 +09:00

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);