Quantcast
WoWInterface - View Single Post - SV and toggle show/hide frame question.
View Single Post
10-20-20, 01:25 AM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,991
Originally Posted by myrroddin View Post
Code:
TSMSC_DB.isShown = TSMSC_DB.isShown or true
This is forcing TSMSC_DB.isShown to true if it's false/nil right after you load your saved variable. If you're trying to set a default, you need to check for nil specifically.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 10-20-20 at 01:28 AM.
  Reply With Quote