Merge pull request #13 from parnic/ascott/12

#12 - Add workaround to prevent guild roster from resetting scroll
This commit is contained in:
Andrew Scott
2023-01-05 14:20:04 -08:00
committed by GitHub

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