Fix settings

This commit is contained in:
2024-12-17 14:22:02 +01:00
parent fa3e4ba02a
commit 82ee637a73
3 changed files with 26 additions and 8 deletions

View File

@@ -22,14 +22,14 @@ function shared.SpellQSettings.Init()
frame:RegisterEvent("PLAYER_LOGIN")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, event, ...)
SetSpellQueue(CykaPersistentData.config.spellQueue.queue)
SetSpellQueue(shared.config.spellQueue.queue)
end)
SlashCmdList["SPELLQSETTINGS"] = function(window)
if window then CykaPersistentData.config.spellQueue.queue = window end
SetSpellQueue(CykaPersistentData.config.spellQueue.queue)
if window then shared.config.spellQueue.queue = window end
SetSpellQueue(shared.config.spellQueue.queue)
end
SLASH_SPELLQSETTINGS1 = "/sq"
print("Cyka - Autoloot loaded")
print("Cyka - Spell queue settings loaded")
end