fix action player wait actions to properly delay playback finish

Wait actions now extend the minimum finish time based on their
timestamp + duration, ensuring timers and other async operations
have time to complete before playback ends and screenshot is taken.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 10:35:44 +01:00
parent 8432bbb986
commit a583ef64a1
2 changed files with 20 additions and 10 deletions

View File

@@ -59,6 +59,7 @@ private:
std::chrono::steady_clock::time_point m_start_time;
std::chrono::steady_clock::time_point m_pause_time;
int64_t m_paused_duration_ms = 0;
int64_t m_min_finish_time_ms = 0; // Extended by wait actions
ScreenshotCallback m_screenshot_cb;
NavigateCallback m_navigate_cb;