Mercurial > wow > reaction
changeset 83:1ad208c25618
Fixed display issues with renaming states/bars
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Wed, 25 Jun 2008 23:35:24 +0000 |
parents | 5b7fd67a28ea |
children | 8119fbe25939 |
files | State.lua modules/ReAction_ConfigUI/ReAction_ConfigUI.lua |
diffstat | 2 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/State.lua Wed Jun 25 23:03:06 2008 +0000 +++ b/State.lua Wed Jun 25 23:35:24 2008 +0000 @@ -822,7 +822,8 @@ self.states[value], args[value], self.states[name], args[name] = self.states[name], args[name], nil, nil self:SetName(value) ApplyStates(self.bar) - end + ReAction:ShowEditor(self.bar, moduleID, value) + end function StateHandler:MoveStateUp() local before, after = self:GetNeighbors()
--- a/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Wed Jun 25 23:03:06 2008 +0000 +++ b/modules/ReAction_ConfigUI/ReAction_ConfigUI.lua Wed Jun 25 23:35:24 2008 +0000 @@ -293,9 +293,6 @@ function editor:Refresh() AceConfigReg:NotifyChange(editorName) - if frame:IsShown() then - self:Open() -- do I need this? - end end function editor:CreateBarTree(bar) @@ -438,7 +435,7 @@ end end - function editor:OnRenameBar(evt, oldname, newname) + function editor:OnRenameBar(evt, bar, oldname, newname) local key = barOptMap[oldname] barOptMap[oldname], barOptMap[newname] = nil, key if key then