From 03ff8bf52edac67471a2d6a5f16cee41f34919d4 Mon Sep 17 00:00:00 2001 From: Salikh Gurgenidze Date: Fri, 19 Dec 2025 00:45:27 +0400 Subject: [PATCH] fix: bankframe on keybindings --- Bindings.xml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Bindings.xml b/Bindings.xml index 17166e0..25bd848 100644 --- a/Bindings.xml +++ b/Bindings.xml @@ -3,6 +3,21 @@ Guda.Modules.BagFrame:Toggle() - Guda.Modules.BankFrame:Toggle() + if Guda_BankFrame and Guda_BankFrame:IsShown() then + Guda_BankFrame:Hide() + else + -- Open the same bank view as the "View Bank" dropdown option + -- Show current character's saved bank (read-only), centered + if Guda and Guda.Modules and Guda.Modules.DB then + local fullName = Guda.Modules.DB:GetPlayerFullName() + if fullName and Guda_BagFrame_ShowCharacterBank then + Guda_BagFrame_ShowCharacterBank(fullName) + elseif Guda and Guda.Modules and Guda.Modules.BankFrame then + -- Fallback: ensure the frame is shown + Guda.Modules.BankFrame:ShowCharacter(fullName) + if Guda_BankFrame then Guda_BankFrame:Show() end + end + end + end