From e96815747f5e076dc7cba77199216e870f0366f7 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Thu, 13 Apr 2023 21:32:06 +0100 Subject: [PATCH] Fix WebStudio not marking items played on play. --- src/mixer/state.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mixer/state.ts b/src/mixer/state.ts index d4941ab..c6dd456 100644 --- a/src/mixer/state.ts +++ b/src/mixer/state.ts @@ -626,7 +626,9 @@ export const load = ( const state = getState().mixer.players[player]; // Don't set played on Preview Channel if (state.loadedItem != null && player !== PLAYER_ID_PREVIEW) { - setItemPlayedAt(itemId(state.loadedItem), new Date().valueOf()); + dispatch( + setItemPlayedAt(itemId(state.loadedItem), new Date().valueOf()) + ); } }); playerInstance.on("pause", () => {