From bfe18170bfb564250e38bb3c7210db0e84bf9b9b Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Tue, 24 Mar 2026 13:36:03 +0100 Subject: [PATCH] Revert "force reload for sp settings" This reverts commit fcae37f9b0929fe12454a575d7a02fd8ab53e8c0. --- modules/gui.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/gui.lua b/modules/gui.lua index 5a7b491c..f87dad94 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -2392,17 +2392,16 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () CreateConfig(U[c], T["Focus Color"], C.unitframes[c], "focuscolor", "color") if c == "player" then - local function spHasteReload() if U[c] then U[c]() end Reload() end CreateConfig(U[c], T["Player SP/Haste Display"], nil, nil, "header") - CreateConfig(spHasteReload, T["Haste Display"], C.unitframes[c], "display_haste", "dropdown", { + CreateConfig(U[c], T["Haste Display"], C.unitframes[c], "display_haste", "dropdown", { "0:"..T["None"], "1:"..T["Haste (cast speed increase)"], "2:"..T["Effective Haste (Haste * cast time reduction)"], -- Only affects mages/warlocks I believe }) - CreateConfig(spHasteReload, T["Haste Display Color"], C.unitframes[c], "display_haste_color", "color") - CreateConfig(spHasteReload, T["Display Spell Power"], C.unitframes[c], "display_spellpower", "checkbox") - CreateConfig(spHasteReload, T["Use Custom Spell Power Color (unchecked = biggest school color)"], C.unitframes[c], "display_sp_color_override", "checkbox") - CreateConfig(spHasteReload, T["Spell Power Color"], C.unitframes[c], "display_sp_color", "color") + CreateConfig(U[c], T["Haste Display Color"], C.unitframes[c], "display_haste_color", "color") + CreateConfig(U[c], T["Display Spell Power"], C.unitframes[c], "display_spellpower", "checkbox") + CreateConfig(U[c], T["Use Custom Spell Power Color (unchecked = biggest school color)"], C.unitframes[c], "display_sp_color_override", "checkbox") + CreateConfig(U[c], T["Spell Power Color"], C.unitframes[c], "display_sp_color", "color") end end) end