Skip to content

Commit

Permalink
Fix GUI lag while Improved Research Queue is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey.ivanov committed Jan 23, 2024
1 parent a1bc600 commit 17899f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ end

function Gui.get_gui_proc(parent, name)
if not parent then return end

-- check only fnei gui
if parent.name ~= "screen" and parent.name ~= "left" and string.find(parent.name, "fnei") == nil then
return
end

local result
for _,g in pairs(parent.children) do
if g and g.valid then
Expand Down

0 comments on commit 17899f0

Please sign in to comment.