From 77f8e7cab3e768b903627cb8aa05f6cbcb2dfadb Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Fri, 6 Jan 2023 19:33:09 -0300 Subject: [PATCH] Fixed an issue with the Streamer! plugin hiding after a logon --- boot.lua | 4 ++-- plugins/Details_Streamer/Details_Streamer.lua | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/boot.lua b/boot.lua index 61a3183c5..94c2f1335 100644 --- a/boot.lua +++ b/boot.lua @@ -6,8 +6,8 @@ local addonName, Details222 = ... local version, build, date, tocversion = GetBuildInfo() - _detalhes.build_counter = 10402 - _detalhes.alpha_build_counter = 10402 --if this is higher than the regular counter, use it instead + _detalhes.build_counter = 10403 + _detalhes.alpha_build_counter = 10403 --if this is higher than the regular counter, use it instead _detalhes.dont_open_news = true _detalhes.game_version = version _detalhes.userversion = version .. " " .. _detalhes.build_counter diff --git a/plugins/Details_Streamer/Details_Streamer.lua b/plugins/Details_Streamer/Details_Streamer.lua index 5cc01add1..6f30c8c05 100644 --- a/plugins/Details_Streamer/Details_Streamer.lua +++ b/plugins/Details_Streamer/Details_Streamer.lua @@ -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)