From a5c72395700550e3641cfd1c2b407df5b922e9e9 Mon Sep 17 00:00:00 2001 From: mostlysimlar Date: Wed, 19 Aug 2020 15:46:05 -0700 Subject: [PATCH] fix: only reopen gui windows if already open, preventing bad startup --- internal/gui/binding_list/View.lua | 1 + internal/gui/feedback/View.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/gui/binding_list/View.lua b/internal/gui/binding_list/View.lua index 629fe59e..72408463 100644 --- a/internal/gui/binding_list/View.lua +++ b/internal/gui/binding_list/View.lua @@ -246,6 +246,7 @@ function View:redraw() if self.window.state then self.window.h = self.window.state.currentH self.window.w = self.window.state.currentW + self.window:reopen() end self:updateElementDimensions() diff --git a/internal/gui/feedback/View.lua b/internal/gui/feedback/View.lua index 8576e1c1..57b68e88 100644 --- a/internal/gui/feedback/View.lua +++ b/internal/gui/feedback/View.lua @@ -177,9 +177,9 @@ function View:redraw(params) if self.window.state then self.window.h = self.window.state.currentH self.window.w = self.window.state.currentW + self.window:reopen(params) end - self.window:reopen(params) self:updateElementDimensions() for _,element in pairs(self.elements) do if element.recalculateWindow then