Fixed an issue with the Streamer! plugin hiding after a logon

This commit is contained in:
Tercio Jose
2023-01-06 19:33:09 -03:00
parent 30c41429b1
commit 77f8e7cab3
2 changed files with 9 additions and 3 deletions
@@ -2440,6 +2440,12 @@ function StreamOverlay:OnEvent (_, event, ...)
if (StreamOverlay.db.is_first_run and not Details:GetTutorialCVar ("STREAMER_PLUGIN_FIRSTRUN")) then
local show_frame = function()
if ("Don't Show The Welcome Screen") then
StreamOverlay.db.is_first_run = false
Details:DisablePlugin ("DETAILS_PLUGIN_STREAM_OVERLAY")
return
end
if ((DetailsWelcomeWindow and DetailsWelcomeWindow:IsShown()) or not StreamOverlay.db.is_first_run) then
return
end
@@ -2496,7 +2502,7 @@ function StreamOverlay:OnEvent (_, event, ...)
close:SetPoint ("center", text3, "center", 0, -50)
end
--StreamOverlay.ShowWelcomeFrame = C_Timer.NewTicker (5, show_frame)
StreamOverlay.ShowWelcomeFrame = C_Timer.NewTicker (5, show_frame)
end
--wipe (StreamOverlay.db)