You say they "disappear", do you mean just the portraits or the whole unit frame..?
If the whole unit disappears it could be because you forgot to end the if after your portrait section
If you only mean the portrait then that's intended "if (Portrait) then" means if Portrait has a value or is true. When you set Portrait to false or nil the code inside won't run.
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.
If you need to contact me, do so on Twitter @v6ooo
Best regards, v6.
|