Add stylua toml
This commit is contained in:
@@ -13,9 +13,7 @@ function shared.SpellQSettings.Init()
|
||||
end
|
||||
|
||||
local function SetSpellQueue(window)
|
||||
if not window then
|
||||
return
|
||||
end
|
||||
if not window then return end
|
||||
print("Spell queue window set to " .. tostring(window))
|
||||
SetCVar("SpellQueueWindow", window)
|
||||
end
|
||||
@@ -23,14 +21,10 @@ function shared.SpellQSettings.Init()
|
||||
local frame = CreateFrame("Frame")
|
||||
frame:RegisterEvent("PLAYER_LOGIN")
|
||||
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||
frame:SetScript("OnEvent", function(self, event, ...)
|
||||
SetSpellQueue(shared.config.spellQueue.queue)
|
||||
end)
|
||||
frame:SetScript("OnEvent", function(self, event, ...) SetSpellQueue(shared.config.spellQueue.queue) end)
|
||||
|
||||
SlashCmdList["SPELLQSETTINGS"] = function(window)
|
||||
if window then
|
||||
shared.config.spellQueue.queue = window
|
||||
end
|
||||
if window then shared.config.spellQueue.queue = window end
|
||||
SetSpellQueue(shared.config.spellQueue.queue)
|
||||
end
|
||||
SLASH_SPELLQSETTINGS1 = "/sq"
|
||||
|
||||
Reference in New Issue
Block a user