Skip to content

Commit

Permalink
Rebuild layout on select & show correct status on first build
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone committed Jul 15, 2024
1 parent 1e1721f commit 7b08c91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lua/wire/stools/cpu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ if CLIENT then
end
-- Overriding this turns off the automatic convar write, so we have to do it ourselves.
memoryModel:SetString(data.wire_cpu_memorymodel)
-- Rebuild the layout to prevent an unsightly gap
panel:InvalidateLayout()
panel:InvalidateChildren(true)
end

memPanel:OnSelect(0,0,{wire_cpu_memorymodel = memoryModel:GetString()}) -- Simulate one on-select to correct the show/hide status
local enabledExtensionOrder = {}
local enabledExtensionLookup = {}
local extensionConvar = GetConVar("wire_cpu_extensions")
Expand Down

0 comments on commit 7b08c91

Please sign in to comment.