Clean up WeakAuras table and remove members that no one should touch
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
if not WeakAuras.IsLibsOK() then return end
|
||||
local AddonName, OptionsPrivate = ...
|
||||
|
||||
local Type, Version = "WeakAurasNewButton", 25
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
@@ -55,7 +56,7 @@ local methods = {
|
||||
end
|
||||
end,
|
||||
["SetThumbnail"] = function(self, regionType, data)
|
||||
local regionData = WeakAuras.regionOptions[regionType]
|
||||
local regionData = OptionsPrivate.Private.regionOptions[regionType]
|
||||
if regionData and regionData.acquireThumbnail then
|
||||
local thumbnail = regionData.acquireThumbnail(self.frame, data)
|
||||
self:SetIcon(thumbnail)
|
||||
@@ -65,7 +66,7 @@ local methods = {
|
||||
end,
|
||||
["ReleaseThumbnail"] = function(self)
|
||||
if self.thumbnail then
|
||||
local regionData = WeakAuras.regionOptions[self.thumbnailType]
|
||||
local regionData = OptionsPrivate.Private.regionOptions[self.thumbnailType]
|
||||
if regionData and regionData.releaseThumbnail then
|
||||
regionData.releaseThumbnail(self.thumbnail)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user