From 4f86740c255e2ed36fcb04c7e919a5c12b8e7de9 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Thu, 5 Jan 2023 11:06:31 -0800 Subject: [PATCH] #12 - Add workaround to prevent guild roster from resetting scroll every 20 seconds. --- Categories/GuildNote.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Categories/GuildNote.lua b/Categories/GuildNote.lua index f903b0d..9b809eb 100644 --- a/Categories/GuildNote.lua +++ b/Categories/GuildNote.lua @@ -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