From 020046814964381c6cfbd557448081c8627a25cb Mon Sep 17 00:00:00 2001 From: goaaats <16760685+goaaats@users.noreply.github.com> Date: Thu, 30 Dec 2021 10:51:23 +0100 Subject: [PATCH] fix: only call Window.Update() when the window is open --- Dalamud/Interface/Windowing/Window.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs index 7f75848a1..ff0a7b958 100644 --- a/Dalamud/Interface/Windowing/Window.cs +++ b/Dalamud/Interface/Windowing/Window.cs @@ -170,8 +170,6 @@ namespace Dalamud.Interface.Windowing /// 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)