Skip to content

Commit

Permalink
Fixed a bug where the esc key would close the bags but also open the …
Browse files Browse the repository at this point in the history
…menu.
  • Loading branch information
Cidan committed May 18, 2024
1 parent 2c14420 commit 62655c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ function addon:OnEnable()
addon.Bags.Backpack = BagFrame:Create(const.BAG_KIND.BACKPACK)
addon.Bags.Bank = BagFrame:Create(const.BAG_KIND.BANK)

table.insert(UISpecialFrames, addon.Bags.Backpack:GetName())
table.insert(UISpecialFrames, addon.Bags.Bank:GetName())

consoleport:Enable()

self:SecureHook('ToggleAllBags')
Expand Down
5 changes: 5 additions & 0 deletions frames/bag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ function bagFrame.bagProto:Wipe()
end
end

---@return string
function bagFrame.bagProto:GetName()
return self.frame:GetName()
end

-- Refresh will refresh this bag's item database, and then redraw the bag.
-- This is what would be considered a "full refresh".
function bagFrame.bagProto:Refresh()
Expand Down

0 comments on commit 62655c4

Please sign in to comment.