Skip to content

Commit

Permalink
Modified compartment icon clicks behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnpsp committed May 1, 2023
1 parent a608214 commit d5aeeff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion KiwiFarm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,13 @@ addon:SetScript("OnEvent", function(frame, event, name)
text = "KiwiFarm",
icon = "Interface\\AddOns\\KiwiFarm\\KiwiFarm.tga",
registerForAnyClick = true,
func = function() addon:ShowMenu() end,
func = function(_,_,_,_,button)
if button == 'RightButton' then
addon:ShowMenu()
else
UpdateFrameVisibility()
end
end,
})
end
-- minimap icon
Expand Down

0 comments on commit d5aeeff

Please sign in to comment.