@@ -13,6 +13,7 @@ local L = setmetatable(PlexusDeBuffIconsLocale or {}, {__index = function(t, k)
1313local PlexusRoster = _G .Plexus :GetModule (" PlexusRoster" )
1414local PlexusFrame = _G .Plexus :GetModule (" PlexusFrame" )
1515local PlexusDeBuffIcons = _G .Plexus :NewModule (" PlexusDeBuffIcons" , " AceBucket-3.0" )
16+ local PlexusDeDeBuffIcons = _G .Plexus :NewModule (" PlexusDeDeBuffIcons" , " AceBucket-3.0" )
1617
1718local function WithAllPlexusFrames (func )
1819 for _ , frame in pairs (PlexusFrame .registeredFrames ) do
@@ -51,6 +52,7 @@ PlexusDeBuffIcons.defaultDB = {
5152 priority = 30 ,
5253 range = false
5354 },
55+ transfer = false
5456}
5557
5658local options = {
@@ -338,6 +340,21 @@ function PlexusDeBuffIcons.ResetBuffIconAlpha(f)
338340end
339341
340342function PlexusDeBuffIcons :OnInitialize ()
343+ if PlexusDeDeBuffIcons .db .profile then
344+ self :Debug (" found old setings" )
345+ -- PlexusDeBuffIcons.db.profile = PlexusDeDeBuffIcons.db.profile
346+ if PlexusDeBuffIcons .db .profile .transfer == false then
347+ for setting , value in pairs (PlexusDeBuffIcons .defaultDB ) do
348+ self :Debug (setting , value )
349+ PlexusDeBuffIcons .db .profile [setting ] = value
350+ end
351+ for setting , value in pairs (PlexusDeDeBuffIcons .db .profile ) do
352+ self :Debug (setting , value )
353+ PlexusDeBuffIcons .db .profile [setting ] = value
354+ end
355+ PlexusDeBuffIcons .db .profile .transfer = true
356+ end
357+ end
341358 self .super .OnInitialize (self )
342359 WithAllPlexusFrames (function (f ) PlexusDeBuffIcons .InitializeFrame (nil , f ) end )
343360 hooksecurefunc (PlexusFrame , " InitializeFrame" , self .InitializeFrame )
0 commit comments