Load the core in OnEnable so it's not loaded when Gesture module's disabled
Scott Sibley [10-24-10 - 03:49]
Load the core in OnEnable so it's not loaded when Gesture module's disabled
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