fix: remove invalid UpdateTooltip script handler on Button frames#143
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughRemoved legacy Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What
Remove
SetScript("UpdateTooltip", ...)calls onButtonframes inRollFrame.luaandLootFrame.lua.UpdateTooltipis not a valid script handler forButtonframes - it only exists onGameTooltip. Setting it on a Button caused the crash:Changes
RollFrame.lua: Removedbtn:SetScript("UpdateTooltip", OnIconEnter)fromCreateRollIconLootFrame.lua: Removed 3slot:SetScript("UpdateTooltip", OnSlotUpdateTooltip)calls and the now-deadOnSlotUpdateTooltipfunctionTooltip behavior is unchanged -
OnEnter/OnLeavehandlers handle all tooltip display correctly.Type of change
Testing
luacheck .passes with 0 new warningsSummary by CodeRabbit