Skip to content

Commit 6095b0b

Browse files
committed
Use a prettier name in the addon options UI
1 parent f514673 commit 6095b0b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

DialogKey_Numy.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Interface-BCC: @toc-version-bcc@
55
## Interface-Wrath: @toc-version-wrath@
66
## Interface-Cata: @toc-version-cata@
7-
## Title: DialogKey - Numy edition
7+
## Title: DialogKey - Numy Edition
88
## Notes: Lets you hit a key to confirm loot/purchase dialogs, accept/complete quests, select quest rewards, etc. Hit 2 to select a reward then spacebar to complete quests? Easy!
99
## Author: Numy (previous verions by: Foxthorn, N01ch, FuriousProgrammer)
1010
## Version: @project-version@

main.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ function DialogKey:OnInitialize()
6666
self:SecureHook(GossipFrame, "Update", "OnGossipFrameUpdate")
6767

6868
-- interfaceOptions defined in `options.lua`
69-
LibStub("AceConfig-3.0"):RegisterOptionsTable(name, ns.interfaceOptions)
70-
LibStub("AceConfigDialog-3.0"):AddToBlizOptions(name)
69+
local configPanelName = 'DialogKey - Numy Edition'
70+
LibStub("AceConfig-3.0"):RegisterOptionsTable(configPanelName, ns.interfaceOptions)
71+
LibStub("AceConfigDialog-3.0"):AddToBlizOptions(configPanelName)
7172

7273
_G.SLASH_DIALOGKEY1 = '/dialogkey'
7374
_G.SLASH_DIALOGKEY2 = '/dkey'
@@ -79,7 +80,7 @@ function DialogKey:OnInitialize()
7980
elseif func == 'remove' then
8081
self:RemoveFrame(args)
8182
else
82-
Settings.OpenToCategory(name)
83+
Settings.OpenToCategory(configPanelName)
8384
end
8485
end
8586
end

0 commit comments

Comments
 (0)