Commit 506dc5d
committed
Slot 1 X opens gem picker instead of removing main skill
Guard the GemSelectControl focusLost+no-match branch (introduced by
upstream PR #1843) against deleting the main active skill, matching
the X-button handler's slot-1 protection.
Without this guard, clicking X on slot 1 would open the gem picker as
intended, but closing the picker (Escape / click-away / re-click X)
without selecting a gem would trigger
GemSelectControl:OnFocusLost -> UpdateGem(..., focusLost=true) ->
the new "elseif focusLost and not bufMatchesGem" branch in the
nameSpec callback, which calls deleteGem() and removes the main
active skill.
For slot >= 2 the upstream auto-clean behavior is preserved.1 parent 79312d8 commit 506dc5d
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
775 | 779 | | |
776 | 780 | | |
777 | 781 | | |
| |||
0 commit comments