Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-22-24, 09:26 PM   #1
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,253
Issue #1: reloading UI undoes table removal

After doing some tests in retail to remove and restore table entries, I noticed that reloading my UI restores the entries, which is not intended. That should happen when the UI button is pressed, line 182 of ChatOptions.lua in Modules-Mainline\Chat.

I foresee the same issue when I port the code to Classic and Cataclysm.

I thought about table.remove, but that requires a numerical index, which I can't guarantee with my current code. When I comment out lines 182-196, the table entries do not return after being set to nil.

Any suggestions are welcome!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Issue #1: reloading UI undoes table removal


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off