Skip to content

Commit

Permalink
fix: only reopen gui windows if already open, preventing bad startup
Browse files Browse the repository at this point in the history
  • Loading branch information
gwatcha committed Aug 19, 2020
1 parent cac9170 commit a5c7239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/gui/binding_list/View.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion internal/gui/feedback/View.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5c7239

Please sign in to comment.