From 959c09cc553641aca047f425dfc4a9a6b03536e7 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Sun, 24 Oct 2010 03:49:28 +0000 Subject: [PATCH] Load the core in OnEnable so it's not loaded when Gesture module's disabled --- Modules/Gestures/Gestures.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/Gestures/Gestures.lua b/Modules/Gestures/Gestures.lua index 0502bcf..0ca4e11 100644 --- a/Modules/Gestures/Gestures.lua +++ b/Modules/Gestures/Gestures.lua @@ -100,11 +100,10 @@ end function mod:OnInitialize() self.db = StarTip.db:RegisterNamespace(self:GetName(), defaults) StarTip:SetOptionsDisabled(options, true) - - self.core = LibCore:New(mod, environment, "StarTip.Gestures", {["StarTip.Gestures"] = {}}, nil, StarTip.db.profile.errorLevel) end function mod:OnEnable() + self.core = LibCore:New(mod, environment, "StarTip.Gestures", {["StarTip.Gestures"] = {}}, nil, StarTip.db.profile.errorLevel) StarTip:SetOptionsDisabled(options, false) self:CreateGestures() end -- 1.7.9.5