Originally Posted by Shinni
not a perfect way but this should work:
Lua Code:
local AddOnManager = GetAddOnManager() for i = 1, AddOnManager:GetNumAddOns() do local name, title, author, description, enabled, state, isOutOfDate = AddOnManager:GetAddOnInfo(i) if title == "myaddonname" then if isOutOfDate then --api change! end end end
it doesn't retrieve the api version but if the addon was uptodate, it will know if there was an API change.
|
Very nice idea. Just need to store if this OOD state was already detected before.
Since that is propably better to be left to a library to gather all this data once, I made it a Feature
Request for OrangUtils.
But I am going to test it a bit via a button. If he thinks it is out of scope, I just make it library myself.