Verified Commit 03250403 authored by Repooc's avatar Repooc

minor clean up

parent 2aad558d
...@@ -89,8 +89,8 @@ function SLE:Initialize() ...@@ -89,8 +89,8 @@ function SLE:Initialize()
if SLE:CheckIncompatible() then return end if SLE:CheckIncompatible() then return end
SLE:DatabaseConversions() SLE:DatabaseConversions()
SLE:ConfigCats() SLE:ConfigCats()
self.initialized = true SLE.initialized = true
self:InitializeModules(); --Load Modules SLE:InitializeModules()
hooksecurefunc(E, "UpdateAll", SLE.UpdateAll) hooksecurefunc(E, "UpdateAll", SLE.UpdateAll)
hooksecurefunc(E, "UpdateMedia", SLE.UpdateMedia) hooksecurefunc(E, "UpdateMedia", SLE.UpdateMedia)
...@@ -113,11 +113,11 @@ function SLE:Initialize() ...@@ -113,11 +113,11 @@ function SLE:Initialize()
if E.private.sle.install_complete == "BETA" then E.private.sle.install_complete = nil end if E.private.sle.install_complete == "BETA" then E.private.sle.install_complete = nil end
if not E.private.sle.install_complete or (tonumber(E.private.sle.install_complete) < 3) then if not E.private.sle.install_complete or (tonumber(E.private.sle.install_complete) < 3) then
E:GetModule("PluginInstaller"):Queue(SLE.installTable) E:GetModule('PluginInstaller'):Queue(SLE.installTable)
end end
if not E.private.sle.characterGoldsSorting[E.myrealm] then E.private.sle.characterGoldsSorting[E.myrealm] = {} end if not E.private.sle.characterGoldsSorting[E.myrealm] then E.private.sle.characterGoldsSorting[E.myrealm] = {} end
EP:RegisterPlugin(AddOnName, GetOptions) --Registering as plugin EP:RegisterPlugin(AddOnName, GetOptions) --Registering as plugin
end end
E.Libs.EP:HookInitialize(SLE, SLE.Initialize) E.Libs.EP:HookInitialize(SLE, SLE.Initialize)
\ No newline at end of file
...@@ -69,6 +69,7 @@ local function configTable() ...@@ -69,6 +69,7 @@ local function configTable()
if EnchantStringName ~= '' and not SLE_ArmoryDB.EnchantString[EnchantStringName] then if EnchantStringName ~= '' and not SLE_ArmoryDB.EnchantString[EnchantStringName] then
SLE_ArmoryDB.EnchantString[EnchantStringName] = {} SLE_ArmoryDB.EnchantString[EnchantStringName] = {}
SelectedEnchantString = EnchantStringName SelectedEnchantString = EnchantStringName
E.Options.args.sle.args.modules.args.armory.args.enchantString.args.ConfigSpace.args.StringGroup.name = L["List of Strings"]..': '..SelectedEnchantString
EnchantStringName = '' EnchantStringName = ''
end end
end, end,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment