Fix WebStudio not marking items played on play.

This commit is contained in:
Matthew Stratford 2023-04-13 21:32:06 +01:00
parent 209880a780
commit e96815747f

View file

@ -626,7 +626,9 @@ export const load = (
const state = getState().mixer.players[player]; const state = getState().mixer.players[player];
// Don't set played on Preview Channel // Don't set played on Preview Channel
if (state.loadedItem != null && player !== PLAYER_ID_PREVIEW) { 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", () => { playerInstance.on("pause", () => {