Reset whoer regardless of enabled (it gets stuck otherwise)

This commit is contained in:
2025-01-01 15:18:35 +01:00
parent 614b07c01a
commit 5eb6f3cbfd

View File

@@ -243,6 +243,7 @@ function shared.Whoer.Init()
local frame = CreateFrame("Frame")
frame:RegisterEvent("WHO_LIST_UPDATE")
frame:SetScript("OnEvent", function(self, event, ...)
queryPending = false
if not Heimdall_Data.config.who.enabled then return end
---@type WHOQuery?
local query = lastQuery
@@ -320,7 +321,6 @@ function shared.Whoer.Init()
-- Turns out WA cannot do this (
-- aura_env.UpdateMacro()
_G["FriendsFrameCloseButton"]:Click()
queryPending = false
end)
do