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.
This commit is contained in:
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user