Skip to content

Commit 0de902d

Browse files
committed
Fix deleted bindings not being deactivated immediately
1 parent 351f8c4 commit 0de902d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The format of this changelog is based on [Keep a Changelog](https://keepachangel
2626
* Include blacklisted unit frames in the UI even if the addon they came from is disabled
2727
* Fix bindings sometimes not updating after changing their group [#263]
2828
* Fix automatic sorting of macros using the form, bonusbar, or bar macro options
29+
* Fix deleted bindings not being deactivated immediately
2930

3031
## [1.16.11] - 2024-11-07
3132

Clicked/Core/BindingProcessor.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,11 @@ function Addon:UpdateBindingLoadState(binding, causes)
10311031
local state = bindingStateCache[binding.uid] or {}
10321032
local conditions = Addon.Condition.Registry:GetConditionSet("load")
10331033

1034+
if wasValid and Clicked:GetByUid(binding.uid) == nil then
1035+
bindingStateCache[binding.uid] = nil
1036+
return false, wasValid
1037+
end
1038+
10341039
if ShouldPerformStateCheck("keybind") then
10351040
state.keybind = not Addon:IsNilOrEmpty(binding.keybind)
10361041
end

0 commit comments

Comments
 (0)