View Single Post
09/11/15, 02:08 AM   #4
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Originally Posted by Garkin View Post
In addition to Votan's comment -

I strongly recommend creating settings panels in EVENT_ADD_ON_LOADED or later. Libraries in this addon are based on LibStub - so they can be (and will be) automatically updated if there is newer version included in any other addon. MyStatusWindow registers setting panel immediately when "settings.lua" is processed, so library can't be properly updated to the latest version and it can cause issues later (that's why you see that warning message).
This is in fact true for all libraries.
Library authors should make sure that they either initialize in response to EVENT_ADD_ON_LOADED or correctly handle reinitialization by newer versions of their library.
Authors who use a library should generally not call it before EVENT_ADD_ON_LOADED fired, unless the library author says that it is fine.
  Reply With Quote