Quantcast

lib update

Darthpred [03-10-13 - 06:26]
lib update
Filename
ElvUI_SLE/libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
diff --git a/ElvUI_SLE/libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua b/ElvUI_SLE/libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
index 0025158..98c2a41 100644
--- a/ElvUI_SLE/libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
+++ b/ElvUI_SLE/libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua
@@ -1,6 +1,6 @@
 if not ElvUI then return end

-local MAJOR, MINOR = "LibElvUIPlugin-1.0", 8
+local MAJOR, MINOR = "LibElvUIPlugin-1.0", 9
 local lib, oldminor = LibStub:NewLibrary(MAJOR, MINOR)


@@ -35,7 +35,8 @@ function lib:RegisterPlugin(name,callback)
 	plugin.callback = callback
 	lib.plugins[name] = plugin
 	local enabled, loadable = select(4,GetAddOnInfo("ElvUI_Config"))
-	if enabled and loadable then
+	local loaded = IsAddOnLoaded("ElvUI_Config")
+	if enabled and loadable and not loaded then
 		if not lib.ConfigFrame then
 			local configFrame = CreateFrame("Frame")
 			configFrame:RegisterEvent("ADDON_LOADED")