[ReplayManager] Refactor to send replayed events through signal (#6979)

* [ReplayManager] Refactor to send replayed events through signal

* remove blank

* pass by const auto ref
This commit is contained in:
RickyRister 2026-06-07 19:39:31 -07:00 committed by GitHub
parent 23da49ee5b
commit 20cdcdb382
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -1169,6 +1169,11 @@ void TabGame::createReplayDock(GameReplay *replay)
QDockWidget::DockWidgetMovable);
replayDock->setWidget(replayManager);
replayDock->setFloating(false);
connect(replayManager, &ReplayManager::eventReplayed, game->getGameEventHandler(),
[this](const auto &event, auto options) {
game->getGameEventHandler()->processGameEventContainer(event, nullptr, options);
});
}
void TabGame::createDeckViewContainerWidget(bool bReplay)