Skip to content

Commit

Permalink
Fixed an issue with the Streamer! plugin hiding after a logon
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jan 6, 2023
1 parent 30c4142 commit 77f8e7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion plugins/Details_Streamer/Details_Streamer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 77f8e7c

Please sign in to comment.