From eab55eddb87bbc89c8cfb78649a0d8853f2022d9 Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Sat, 23 May 2026 17:45:54 +0200 Subject: [PATCH] fix(minimap): right-click toggles config instead of ReloadUI Right-click on Leatrix's minimap button previously fired ReloadUI() with no modifier and no confirmation, which is far too easy to trigger by accident. Make right-click behave the same as left-click (toggle the config panel). UI reloads remain available via /reload. --- Leatrix_Plus.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 7a8c133..3dd534e 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -11315,7 +11315,10 @@ function LeaPlusLC:Player() return end - if arg1 == "LeftButton" and not IsAltKeyDown() then + -- CoA: right-click previously triggered ReloadUI(), which fires far + -- too easily for a minimap button. Treat right-click the same as + -- left-click (toggle config). Reload is still available via /reload. + if (arg1 == "LeftButton" or arg1 == "RightButton") and not IsAltKeyDown() then -- No modifier key toggles the options panel if LeaPlusLC:IsPlusShowing() then LeaPlusLC:HideFrames() @@ -11326,9 +11329,6 @@ function LeaPlusLC:Player() end LeaPlusLC["Page" .. LeaPlusLC["LeaStartPage"]]:Show() end - if arg1 == "RightButton" and not IsAltKeyDown() then - ReloadUI(); - end -- Add ALT-click functionality here if (arg1 == "LeftButton" or arg1 == "RightButton") and IsAltKeyDown() then