Fix eventful trying to show sidebar

It should not try to do that if e.g. showing buildingitems. Maybe later we will have more valid focus strings (e.g. custom item view for some buildings) but for now just use vanilla (or callback function not a class)
develop
Warmist 2016-04-10 14:58:03 +03:00
parent 9c9f710d5b
commit 29f08cd20d
1 changed files with 0 additions and 2 deletions

@ -110,8 +110,6 @@ function registerSidebar(shop_name,callback)
local sidebar=callback{workshop=wshop} local sidebar=callback{workshop=wshop}
if string.sub(dfhack.gui.getCurFocus(),1,#valid_focus)==valid_focus then if string.sub(dfhack.gui.getCurFocus(),1,#valid_focus)==valid_focus then
sidebar:show() sidebar:show()
else
sidebar:show(dfhack.gui.getCurViewscreen(true).parent)
end end
end end
end end