From a54fb35fed9abfe4b26334774f0cffb6d3eb5a76 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 10 Mar 2013 10:26:47 +0400 Subject: [PATCH] lib update --- .../libs/LibElvUIPlugin-1.0/LibElvUIPlugin-1.0.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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") -- 1.7.9.5