From 29f08cd20d517d201c8b54c0a621c55c94c219d8 Mon Sep 17 00:00:00 2001 From: Warmist Date: Sun, 10 Apr 2016 14:58:03 +0300 Subject: [PATCH] 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) --- plugins/lua/eventful.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/lua/eventful.lua b/plugins/lua/eventful.lua index 56311c639..0035c3a53 100644 --- a/plugins/lua/eventful.lua +++ b/plugins/lua/eventful.lua @@ -110,8 +110,6 @@ function registerSidebar(shop_name,callback) local sidebar=callback{workshop=wshop} if string.sub(dfhack.gui.getCurFocus(),1,#valid_focus)==valid_focus then sidebar:show() - else - sidebar:show(dfhack.gui.getCurViewscreen(true).parent) end end end