From 1033f349f6f2f6310fcba6376bbd5d48cd6a9979 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 10 Dec 2024 10:14:44 +0100 Subject: [PATCH] Load channel settings after 1s instead of instantly --- Channeler.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Channeler.lua b/Channeler.lua index a9a4806..2b4c0ad 100644 --- a/Channeler.lua +++ b/Channeler.lua @@ -118,5 +118,14 @@ local frame = CreateFrame("Frame") frame:RegisterEvent("PLAYER_LOGIN") frame:RegisterEvent("PLAYER_ENTERING_WORLD") frame:SetScript("OnEvent", function(self, event, ...) - Configure() + C_Timer.After(1, function() + Configure() + end) end) +--Configure() + +SlashCmdList["CHANNELER"] = function(msg) + Configure() +end +SLASH_CHANNELER1 = "/fix" +SLASH_CHANNELER2 = "/f"