#12 - Add workaround to prevent guild roster from resetting scroll every 20 seconds.

This commit is contained in:
Andrew Scott
2023-01-05 11:06:31 -08:00
parent c862c495f7
commit 4f86740c25

View File

@ -69,7 +69,11 @@ end)
DogTag:AddTimerHandler("Unit", function(num, currentTime)
if currentTime > nextGuildRosterUpdate then
if IsInGuild() then
if IsInGuild()
-- CommunitiesFrame check workaround for
-- https://github.com/parnic/LibDogTag-Unit-3.0/issues/12
and (not CommunitiesFrame or not CommunitiesFrame:IsVisible())
then
GuildRoster()
end
nextGuildRosterUpdate = currentTime + 20