Hotfix: replace party recalculation with button refresh and add safety checks to debuff spell configuration - rewerting accidental deletion

This commit is contained in:
Bluewhale1337
2026-08-25 10:23:46 +02:00
parent 6a6a9e3283
commit 60ef3bc41f
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -9,12 +9,12 @@ function HealBot_Options_BuffWatch_OnClick(self)
else
HealBot_Options_BuffWatchInCombat:Enable()
end
HealBot_RecalcParty();
HealBot_Action_RefreshButtons(nil);
end
function HealBot_Options_BuffWatchInCombat_OnClick(self)
local frame = self or this
HealBot_Config.BuffWatchInCombat = frame:GetChecked() or 0;
HealBot_RecalcParty();
HealBot_Action_RefreshButtons(nil);
end
function HealBot_Options_BuffSelf_OnLoad(self)
local frame = self or this
@@ -38,7 +38,7 @@ function HealBot_Options_BuffSelf_OnClick(self)
else
HealBot_Config.BuffWatchSelf[id] = 0
end
HealBot_RecalcParty();
HealBot_Action_RefreshButtons(nil);
end
function HealBot_Options_Buff_OnLoad(self)
local frame = self or this
@@ -80,7 +80,7 @@ function HealBot_Options_Buff_OnClick()
HealBot_UIDropDownMenu_SetSelectedID(frame, this.value + 1)
UIDropDownMenu_SetText(text, frame)
HealBot_RecalcParty();
HealBot_Action_RefreshButtons(nil);
end
function HealBot_Options_SetBuffs()
local myClass = UnitClass("player")