BetterBags

BetterBags

1M Downloads

[Feature]: Dafault open to Warband Bank when visiting actual bank

Weetbix813 opened this issue ยท 1 comments

commented

Describe the feature

I'd really like to default to the first tab of my Warband Bank account instead of that character's bank tabs when I go to the actual bank.
Thanks!

Describe the implementation

When I go to the config options there would be a check box or something for "Default to Warband bank when opening bank"

commented

@Cidan, the following does the trick.

local function OpenWarbandBank()
BankFrameTab3:Click()
end

local BankFrameEvents = CreateFrame("Frame")
BankFrameEvents:RegisterEvent("BANKFRAME_OPENED")
BankFrameEvents:SetScript("OnEvent", function()
C_Timer.After(0, OpenWarbandBank)
end)