From ea60576e85ed81d5c658e17c428872964589f92b Mon Sep 17 00:00:00 2001 From: Bluewhale1337 <295648290+Bluewhale1337@users.noreply.github.com> Date: Sat, 25 Jul 2026 17:13:03 +0200 Subject: [PATCH] fixt: skins module for consistent UI element styling --- ElvUI/Modules/Skins/Skins.lua | 1 + README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ElvUI/Modules/Skins/Skins.lua b/ElvUI/Modules/Skins/Skins.lua index 37f2336..8332425 100644 --- a/ElvUI/Modules/Skins/Skins.lua +++ b/ElvUI/Modules/Skins/Skins.lua @@ -244,6 +244,7 @@ function S:HandleNextPrevButton(btn, useVertical, inverseDirection) end function S:HandleRotateButton(btn) + if not btn then return end E:SetTemplate(btn, "Default") E:Size(btn, btn:GetWidth() - 14, btn:GetHeight() - 14) diff --git a/README.md b/README.md index e344300..05812bd 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ - **Fix:** Wrapped `SetParent` in `pcall` within `CreateBackdrop` to prevent crashes on non-UI object dummy tables. - **Fix:** Added graceful `nil` fallbacks to `E:Point`, `E:Size`, `E:Width`, and `E:Height` layout anchors, immunizing the UI against crashes when Turtle WoW or other addons delete elements. - **Fix:** Rewrote `Misc.lua` options skinning loops using `pairs()` to resolve Lua 5.0 `attempt to call a nil value` crashes caused by missing options tabs/sliders/checkboxes. -- **Fix:** Added element existence checks in `Skins.lua` `HandleButton` to skip skinning gracefully instead of crashing on `nil`. +- **Fix:** Added element existence checks in `Skins.lua` `HandleButton` and `HandleRotateButton` to skip skinning gracefully instead of crashing on `nil`. This is the backported version of ElvUI for World of Warcraft - Vanilla (1.12.1)