Fixes Addon bugging from pr#67
Mikeprod [12-23-16 - 03:56]
Fixes Addon bugging from pr#67
diff --git a/core.lua b/core.lua
index 65c44b9..e186a25 100644
--- a/core.lua
+++ b/core.lua
@@ -506,11 +506,11 @@ end
function XIVBar:GetTextOptions()
-- Don't know if this still needed, so i keep it commendet out.
- --[[local t = self.LSM:List(self.LSM.MediaType.FONT);
+ local t = self.LSM:List(self.LSM.MediaType.FONT);
local fontList = {};
for k,v in pairs(t) do
fontList[v] = v;
- end]]
+ end
return {
name = LOCALE_TEXT_LABEL,
type = "group",
@@ -522,7 +522,7 @@ function XIVBar:GetTextOptions()
type = "select",
dialogControl = 'LSM30_Font',
order = 1,
- values = AceGUIWidgetLSMlists.font,
+ values = AceGUIWidgetLSMlists and AceGUIWidgetLSMlists.font or fontList,
style = "dropdown",
get = function() return self.db.profile.text.font; end,
set = function(info, val) self.db.profile.text.font = val; self:Refresh(); end