LibDualSpec-1.0 is a minimalist approach to dual-spec profiles with AceDB-3.0.
It uses native AceDB-3.0 profile switching capabilities to achieve its purpose. It can also enhance AceDBOptions-3.0 option table to provide an easy way to configure it.
Once an AceDB-3.0 instance has been enhanced, the user can choose to enable automatic profile swapping. He/she has then to choose an alternate profile.
The feature is disabled by default and the user has to create the alternate profile beforehand.
I'm getting this error upon deleting AceDB profiles, and as far as I can tell, the LibDualSpec namespace not having a 'profiles' field is the problem.
AceDB-3.0.lua line 510:
bad argument #1 to 'rawget' (table expected, got nil)
Debug:
(tail call): ?
[C]: ?
...nterface\AddOns\Mapster\Libs\AceDB-3.0\AceDB-3.0.lua:510: DeleteProfile()
...nterface\AddOns\Mapster\Libs\AceDB-3.0\AceDB-3.0.lua:519: DeleteProfile()
The profile seems to be deleted properly, and I'm not sure if anything's actually wrong, but an error is an error. I'm able to reproduce the error by setting a new, "empty" profile, reverting to the previous profile, reloading the UI, and then trying to delete the recently created profile.
Noticed it first in my own addon, so I thought I had done something wrong, but then I also noticed it in RatingBuster.
I did '/run CritlineDB.namespaces.minimap.profiles = nil' before deleting a profile, and yes, that'd produce the same error. (didn't have the LibDualSpec namespace in the db at this time) If I skip the UI reloading I don't get the error. I'm not sure how AceDB works exactly, but do/should not all databases have a profiles key?
It uses native AceDB-3.0 profile switching capabilities to achieve its purpose. It can also enhance AceDBOptions-3.0 option table to provide an easy way to configure it.
Once an AceDB-3.0 instance has been enhanced, the user can choose to enable automatic profile swapping. He/she has then to choose an alternate profile.
The feature is disabled by default and the user has to create the alternate profile beforehand.
Translators wanted.
Links :
http://www.wowace.com/addons/libdualspec-1-0/tickets/1-de-de-locale/
I'm getting this error upon deleting AceDB profiles, and as far as I can tell, the LibDualSpec namespace not having a 'profiles' field is the problem.
The profile seems to be deleted properly, and I'm not sure if anything's actually wrong, but an error is an error. I'm able to reproduce the error by setting a new, "empty" profile, reverting to the previous profile, reloading the UI, and then trying to delete the recently created profile.
Noticed it first in my own addon, so I thought I had done something wrong, but then I also noticed it in RatingBuster.
so that you can get the (imo) expected result of .GetDualSpecProfile when the OnProfileChanged callback fires?