From 7bbd53c6516ec095d6f9b7537bd771f0a7358f3e Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 18 Jul 2017 14:55:11 +0200 Subject: [PATCH] panel: use existing bag functions --- modules/panel.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modules/panel.lua b/modules/panel.lua index 6f48bdcf..1e301321 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -255,7 +255,7 @@ pfUI:RegisterModule("panel", function () end end local freeslots = maxslots - usedslots - pfUI.panel:OutputPanel("bagspace", freeslots .. " (" .. usedslots .. "/" .. maxslots .. ")") + pfUI.panel:OutputPanel("bagspace", freeslots .. " (" .. usedslots .. "/" .. maxslots .. ")", nil, OpenAllBags) end -- Update "gold" @@ -286,11 +286,7 @@ pfUI:RegisterModule("panel", function () GameTooltip:Show() end - local click = function () - OpenAllBags() - end - - pfUI.panel:OutputPanel("gold", gold .. "|cffffd700g|r " .. silver .. "|cffc7c7cfs|r " .. copper .. "|cffeda55fc|r", tooltip, click) + pfUI.panel:OutputPanel("gold", gold .. "|cffffd700g|r " .. silver .. "|cffc7c7cfs|r " .. copper .. "|cffeda55fc|r", tooltip, OpenAllBags) end -- Update "friends"