mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-01 16:36:56 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user