Skip to content

Commit

Permalink
don't show reservation panel over location details
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Sep 4, 2024
1 parent a7115e2 commit f1df6d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/lua/preserve-rooms.lua
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ ReservedWidget.ATTRS{
'dwarfmode/Zone/Some/Tomb',
},
frame={w=44, h=15},
version=2,
}

local new_world_loaded = true
Expand Down Expand Up @@ -136,7 +137,8 @@ function ReservedWidget:init()
visible=function()
local scr = dfhack.gui.getDFViewscreen(true)
return not dfhack.gui.matchFocusString('dwarfmode/UnitSelector', scr) and
not dfhack.gui.matchFocusString('dwarfmode/LocationSelector', scr)
not dfhack.gui.matchFocusString('dwarfmode/LocationSelector', scr) and
not dfhack.gui.matchFocusString('dwarfmode/LocationDetails', scr)
end,
subviews={
widgets.Panel{
Expand Down

0 comments on commit f1df6d5

Please sign in to comment.