Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 2822648f943af985cbc9fc16f929759ba3df33ba
- Author: Infus <infus@squorn.de>
- Date: Tue Jul 26 15:15:12 2016 +0200
- Hack
- diff --git a/WeakAuras/WeakAuras.lua b/WeakAuras/WeakAuras.lua
- index 652707c..884349b 100644
- --- a/WeakAuras/WeakAuras.lua
- +++ b/WeakAuras/WeakAuras.lua
- @@ -866,7 +866,14 @@ function WeakAuras.UpdateCurrentInstanceType(instanceType)
- end
- end
- +function WeakAuras.massModifyHack(enable)
- + WeakAuras.delayMassModify = enable;
- +end
- +
- function WeakAuras.ScanForLoads(self, event, arg1)
- + if (WeakAuras.delayMassModify) then
- + return;
- + end
- -- PET_BATTLE_CLOSE fires twice at the end of a pet battle. IsInBattle evaluates to TRUE during the
- -- first firing, and FALSE during the second. I am not sure if this check is necessary, but the
- -- following IF statement limits the impact of the PET_BATTLE_CLOSE event to the second one.
- diff --git a/WeakAurasOptions/WeakAurasOptions.lua b/WeakAurasOptions/WeakAurasOptions.lua
- index baa1c04..660fa83 100644
- --- a/WeakAurasOptions/WeakAurasOptions.lua
- +++ b/WeakAurasOptions/WeakAurasOptions.lua
- @@ -1635,6 +1635,7 @@ local function getAll(data, info, ...)
- end
- local function setAll(data, info, ...)
- + WeakAuras.massModifyHack(true);
- for index, childId in ipairs(data.controlledChildren) do
- local childData = WeakAuras.GetData(childId);
- if(childData) then
- @@ -1654,6 +1655,9 @@ local function setAll(data, info, ...)
- end
- end
- end
- + WeakAuras.massModifyHack(false);
- + WeakAuras.ScanForLoads();
- + WeakAuras.SortDisplayButtons();
- end
- local function hiddenAll(data, info)
- @@ -8518,6 +8522,9 @@ end
- local previousFilter;
- function WeakAuras.SortDisplayButtons(filter, overrideReset)
- + if (WeakAuras.delayMassModify) then
- + return;
- + end
- local recenter = false;
- filter = filter or (overrideReset and previousFilter or "");
- if(frame.filterInput:GetText() ~= filter) then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement