Skip to content

Commit

Permalink
Fix: Lua error line 1704 attempt tp indes global 'StackSplitText'
Browse files Browse the repository at this point in the history
  • Loading branch information
Alar of Runetotem committed Dec 17, 2018
1 parent d4b066f commit 842912a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions MailCommander.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1701,12 +1701,14 @@ local function ShowSplitter(key,toon,itemButton,itemId,r,g,b)
itemButton.SplitStack=SplitFunc
itemButton.toon=toon
itemButton.key=data
local StackSplitFrame=StackSplitFrame
local StackSplitText=StackSplitFrame.StackSplitText
StackSplitText:SetText(StackSplitFrame.split);
OpenStackSplitFrame(99999,itemButton,"RIGHT","LEFT")
StackSplitFrame:OpenStackSplitFrame(99999,itemButton,"RIGHT","LEFT")
StackSplitFrame.split = db[data][toon][itemId] or 0
StackSplitText:SetText(StackSplitFrame.split);
StackSplitText:SetTextColor(r,g,b)
if StackSplitFrame.split > 0 then StackSplitLeftButton:Enable() end
if StackSplitFrame.split > 0 then StackSplitFrame.StackSplitLeftButton:Enable() end
MailCommanderSplitLabel.Text:SetTextColor(r,g,b)
MailCommanderSplitLabel.Text:SetText(toon .. "\n" .. msg)
MailCommanderSplitLabel:Show()
Expand Down
2 changes: 1 addition & 1 deletion MailCommander.xml
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@
<Scripts>
<OnHide>
self:Hide()
StackSplitText:SetTextColor(1,1,1)
StackSplitFrame.StackSplitText:SetTextColor(1,1,1)
</OnHide>

</Scripts>
Expand Down
3 changes: 3 additions & 0 deletions RelNotes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Mail Commander allows you to define a per character list of needs which wil be d
You can make this selection permament, disabling some kind of items, or just cherry pick each time
You can also use the "Send all" button to have all enabled items sent with a single click
]])
self:RelNotes(0,9,10,[[
Fix: Lua error line 1704 attempt tp indes global 'StackSplitText' (a null value)
]])
self:RelNotes(0,9,4,[[
Update: Updated boa tokens with 7.3 data
]])
Expand Down

0 comments on commit 842912a

Please sign in to comment.