From a6d396e88d9036a051cd7861d2fdc6e83d44a93e Mon Sep 17 00:00:00 2001 From: Parnic Date: Fri, 11 Nov 2022 10:27:27 -0600 Subject: [PATCH] Fix ignore --- Breakables.lua | 4 ++-- changelog.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Breakables.lua b/Breakables.lua index fb281c0..23e7001 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -1059,8 +1059,8 @@ function Breakables:OnMouseUp(frame) self.settings.buttonFrameTop[frameNum] = frame:GetTop() end -local function IgnoreFunc(self, button) - if button == "RightButton" and not InCombatLockdown() then +local function IgnoreFunc(self, button, isDown) + if button == "RightButton" and isDown and not InCombatLockdown() then Breakables.settings.ignoreList[self.itemId] = true Breakables:FindBreakables() LibStub("AceConfigRegistry-3.0"):NotifyChange("Breakables") diff --git a/changelog.txt b/changelog.txt index 18157ed..529a8db 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ v1.9.2: - Dragonflight/10.0.2 compatibility - Add ability to reset placement of the bar in case it gets lost somehow. - Shuffled settings into their own categories to make accidental resets unlikely. +- Fix items being added to the ignore list both on press and release. This would frequently mean that two items would get ignored instead of just the one you wanted to click on. v1.9.1: