Skip to content

Commit

Permalink
Fix outdated API call
Browse files Browse the repository at this point in the history
  • Loading branch information
Kumodatsu committed Jul 29, 2024
1 parent e874f2a commit 6f465f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ and this project adheres to
### Fixed
- When the pet is toggled, TRP stats are now immediately updated to reflect the
change.
- Fixed a Lua error when trying to open the options menu from the addon
compartment.

## [0.6.5][] - 2024-05-09
### Changed
Expand Down
4 changes: 1 addition & 3 deletions addons/CharacterSheet/ui/compartment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ AddonCompartmentFrame:RegisterAddon {
root:CreateTitle "Character Sheet"
root:CreateButton("Options", function()
local title = GetAddOnMetadata(addon_name, "title")
-- Have to call this function twice because of a WoW API-side bug.
InterfaceOptionsFrame_OpenToCategory(title)
InterfaceOptionsFrame_OpenToCategory(title)
Settings.OpenToCategory(title)
end)
root:CreateTitle(T.MINIMAP_MENU_UI_FRAMES)
root:CreateCheckbox(
Expand Down

0 comments on commit 6f465f1

Please sign in to comment.