Commit cbff5dba authored by Simpy's avatar Simpy 🐹
Browse files

hide minimap panels when minimap off :3

parent 4b7d6ede
......@@ -683,6 +683,7 @@ E.Options.args.datatexts = {
desc = L["Display minimap panels below the minimap, used for datatexts."],
get = function(info) return E.db.datatexts.panels.MinimapPanel[info[#info]] end,
set = function(info, value) E.db.datatexts.panels.MinimapPanel[info[#info]] = value DT:UpdatePanelInfo('MinimapPanel') end,
hidden = function() return not E.private.general.minimap.enable end,
order = 4,
args = {
enable = {
......@@ -692,7 +693,10 @@ E.Options.args.datatexts = {
set = function(info, value)
E.db.datatexts.panels[info[#info - 1]][info[#info]] = value
DT:UpdatePanelInfo('MinimapPanel')
Minimap:UpdateSettings()
if E.private.general.minimap.enable then
Minimap:UpdateSettings()
end
end,
},
numPoints = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment