Fix eventful not showing sidebar sometimes

E.g. when destroying buildings
develop
Warmist 2016-04-10 14:47:33 +03:00
parent 4c4b727a2e
commit 9c9f710d5b
1 changed files with 1 additions and 1 deletions

@ -105,7 +105,7 @@ function registerSidebar(shop_name,callback)
dfhack.onStateChange.eventful=unregall
else
local function drawSidebar( wshop )
local valid_focus="dwarfmode/QueryBuilding/Some"
local valid_focus="dwarfmode/QueryBuilding"
if wshop:getMaxBuildStage()==wshop:getBuildStage() then
local sidebar=callback{workshop=wshop}
if string.sub(dfhack.gui.getCurFocus(),1,#valid_focus)==valid_focus then