View Single Post
12-19-17, 08:57 AM   #8
Ammako
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 256
DisableAddon takes effect right away. Sorta.

The addon will still be loaded the first time, but since you make the code return it won't really run (does return "exit" the addon completely when used outside of a function like this?)

Then if the user logs out and back in, or reloads the UI, the addon will not be loaded, 'cause it was disabled.

So pretty much, it loads the first time but won't run, and on subsequent logins it wont load anymore.

If you preferred, you could still prompt the user to reload ui, or use a popup that asks if they want to reload to disable the addon (this would only show once on first login, of course.)
  Reply With Quote