mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
api: ensure variables to be available
This commit is contained in:
Vendored
+1
-1
@@ -6,7 +6,7 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
function pfUI.environment:UpdateFonts()
|
function pfUI.environment:UpdateFonts()
|
||||||
if pfUI_config and pfUI_config.global.font_default then
|
if pfUI_config and pfUI_config.global and pfUI_config.global.font_default then
|
||||||
pfUI.font_default = "Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_default .. ".ttf"
|
pfUI.font_default = "Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_default .. ".ttf"
|
||||||
pfUI.font_combat = "Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_combat .. ".ttf"
|
pfUI.font_combat = "Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_combat .. ".ttf"
|
||||||
pfUI.font_square = "Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_square .. ".ttf"
|
pfUI.font_square = "Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_square .. ".ttf"
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ function pfUI.firstrun:AddStep(name, yfunc, nfunc, descr, cmpnt)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function pfUI.firstrun:NextStep()
|
function pfUI.firstrun:NextStep()
|
||||||
if next(pfUI_init) == nil then
|
if pfUI_init and next(pfUI_init) == nil then
|
||||||
local yes = function()
|
local yes = function()
|
||||||
this:GetParent():Hide()
|
this:GetParent():Hide()
|
||||||
pfUI_init["welcome"] = true
|
pfUI_init["welcome"] = true
|
||||||
|
|||||||
Reference in New Issue
Block a user