diff --git a/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs b/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs index aef68a896..024e80d5d 100644 --- a/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs +++ b/Dalamud/Interface/Internal/Windows/ChangelogWindow.cs @@ -23,6 +23,8 @@ using Dalamud.Plugin.Services; using Dalamud.Storage.Assets; using Dalamud.Utility; +using FFXIVClientStructs.FFXIV.Client.UI; + using ImGuiNET; namespace Dalamud.Interface.Internal.Windows; @@ -229,6 +231,9 @@ internal sealed class ChangelogWindow : Window, IDisposable public override void PostDraw() { ImGui.PopStyleVar(3); + + this.ResetMovieTimer(); + base.PostDraw(); } @@ -571,6 +576,23 @@ internal sealed class ChangelogWindow : Window, IDisposable this.openedThroughEligibility = true; } } + + private unsafe void ResetMovieTimer() + { + var uiModule = UIModule.Instance(); + if (uiModule == null) + return; + + var agentModule = uiModule->GetAgentModule(); + if (agentModule == null) + return; + + var agentLobby = agentModule->GetAgentLobby(); + if (agentLobby == null) + return; + + agentLobby->IdleTime = 0; + } private static class FtueLevels {