Read up here for info on this:
Hi Hecticcc, I have this variable in a Method I am using (written by Atom).
if panel:getRestoreState() == true or panel:getProgramState() == true then return end
This looks very similar to what Msepsis mentioned in the thread you referenced above. It does the job, many thanks for your assistance.