fix(db): 🐛 Fixes an issue where personal and realm bank information wouldn't get updated (#11)

* fix(db): 🐛 Fixes an issue where personal and realm bank information wouldn't get updated

Introduce the "Blizzard_GuildBankUI" addon in constructor, ensuring that the `GuildBankFrame` is loaded for bank type detection.
Hide the Blizzard Guildbank to avoid both Bagnon and Blizzard banks being shown at the same time.

This breaks the red color from the bank tabs

* refactor(db): ♻️ Use old implementation for personal and guild bank detection

* fix: 🐛 Fix issue where personal and realm bank wasn't identified on guild bank change event

* fix(db): 🐛 Fixes an issue where only current guild bank tab would be added to db

Use `QueryGuildBankTab` to preload items in guild bank tabs and identify trigger in GUILDBANKBAGSLOTS_CHANGED event to update bags when items are ready

* fix(db): 🐛 Correctly index realm and personal banks on initial load
This commit is contained in:
Simon Moe Sørensen
2026-01-19 20:48:24 +01:00
committed by GitHub
parent 53749e8ec5
commit 5b7a73a9c2
2 changed files with 78 additions and 43 deletions
+3
View File
@@ -23,6 +23,9 @@ local function GetIDFromLink(link)
end
local function GetAscensionBankType()
-- The logic doesn't work because GuildBankFrame is not loaded
-- However the sort still works because it can sort using 'guild' as a fallback
-- but personal and realm branches are never reached
if GuildBankFrame and GuildBankFrame.IsPersonalBank then
return "personal"
elseif GuildBankFrame and GuildBankFrame.IsRealmBank then