From 31a51785f4319e33c8105149f5fa117c4e4cf819 Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Mon, 8 Mar 2021 22:55:10 +0300 Subject: [PATCH] again small revert --- WeakAuras/RegionTypes/RegionPrototype.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/WeakAuras/RegionTypes/RegionPrototype.lua b/WeakAuras/RegionTypes/RegionPrototype.lua index bdf37d7..ad8df3a 100644 --- a/WeakAuras/RegionTypes/RegionPrototype.lua +++ b/WeakAuras/RegionTypes/RegionPrototype.lua @@ -743,8 +743,6 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare Private.RunConditions(region, uid, true) region.subRegionEvents:Notify("PreHide") region:Hide(); - region.states = nil - region.state = nil if (cloneId) then Private.ReleaseClone(region.id, cloneId, data.regionType); parent:RemoveChild(id, cloneId) @@ -760,8 +758,6 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare Private.RunConditions(region, uid, true) region.subRegionEvents:Notify("PreHide") region:Hide(); - region.states = nil - region.state = nil if (cloneId) then Private.ReleaseClone(region.id, cloneId, data.regionType); end @@ -798,6 +794,7 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare region.subRegionEvents:Notify("PreShow") + region.justCreated = nil; Private.ApplyFrameLevel(region) region:Show(); Private.PerformActions(data, "start", region); @@ -845,6 +842,7 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare end region.toShow = true; + region.justCreated = nil; if(region.PreShow) then region:PreShow(); end