remove unused prd code

This commit is contained in:
NoM0Re
2024-12-29 16:06:34 +01:00
parent afa66ff265
commit a62d8f352e
2 changed files with 11 additions and 3 deletions
+8
View File
@@ -4580,6 +4580,14 @@ function Private.ensurePRDFrame()
wipe(personalRessourceDisplayFrame.attachedVisibleFrames);
end
personalRessourceDisplayFrame.expand = function(self, id)
local data = WeakAuras.GetData(id);
if (data.anchorFrameType == "PRD") then
self.attachedVisibleFrames[id] = true;
self:updateVisible();
end
end
personalRessourceDisplayFrame.collapse = function(self, id)
self.attachedVisibleFrames[id] = nil;
self:updateVisible();
@@ -1416,9 +1416,9 @@ local methods = {
if self.view.visibility >= 1 then
if(self.view.region and self.view.region.Expand) then
OptionsPrivate.Private.FakeStatesFor(self.view.region.id, true)
if (OptionsPrivate.Private.personalRessourceDisplayFrame) then
OptionsPrivate.Private.personalRessourceDisplayFrame:expand(self.view.region.id);
end
--if (OptionsPrivate.Private.personalRessourceDisplayFrame) then
--OptionsPrivate.Private.personalRessourceDisplayFrame:expand(self.view.region.id);
--end
if (OptionsPrivate.Private.mouseFrame) then
OptionsPrivate.Private.mouseFrame:expand(self.view.region.id);
end