fix: only call Window.Update() when the window is open

This commit is contained in:
goaaats 2021-12-30 10:51:23 +01:00
parent 508d7643d9
commit 0200468149
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -170,8 +170,6 @@ namespace Dalamud.Interface.Windowing
/// </summary>
internal void DrawInternal()
{
this.Update();
if (!this.IsOpen)
{
if (this.internalIsOpen != this.internalLastIsOpen)
@ -185,6 +183,8 @@ namespace Dalamud.Interface.Windowing
return;
}
this.Update();
var hasNamespace = !string.IsNullOrEmpty(this.Namespace);
if (hasNamespace)