View Single Post
05-14-14, 08:01 PM   #11
kurapica.igas
A Chromatic Dragonspawn
Join Date: Aug 2011
Posts: 152
Lua Code:
  1. -- LCIres["Res1"] always be false when you reload ui for those code:
  2. if type(LCIres) ~= "table" then
  3.     LCIres = {}
  4.     LCIres["Res1"] = false
  5. else
  6.     if LCIres["Res1"] == true then
  7.            -- skip
  8.         end
  9. end

When you reload the ui, the LCIres won't be existed in the _G, so you need put the LCIres in saved variables and check it when your add-on is loaded.
  Reply With Quote