Replace pfUI's clamp/isempty/modf with ClassicAPI's Clamp/TableIsEmpty

The world map's shift/ctrl wheel alpha and scale use Clamp, and the
fresh-install profile check uses TableIsEmpty (pfUI_init and pfUI_config
are always tables by then). modf only wrapped math.modf and had no callers.
This commit is contained in:
Brues
2026-10-31 15:47:52 -05:00
parent 3b64bfa98b
commit 2b7febf617
3 changed files with 3 additions and 33 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ pfUI:SetScript("OnEvent", function()
end
-- use "Modern" as default profile on a fresh install
if pfUI.api.isempty(pfUI_init) and pfUI.api.isempty(pfUI_config) then
if TableIsEmpty(pfUI_init) and TableIsEmpty(pfUI_config) then
pfUI_config = pfUI.api.CopyTable(pfUI_profiles["Modern"]) or {}
end