mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 20:03:52 +00:00
fix TimerPahse difference from load and reload (#1179)
* use loadEvent function to reload * rename reload to updateLoaded
This commit is contained in:
committed by
GitHub
parent
d3620b52f4
commit
dc06a9afc3
@@ -307,7 +307,7 @@ export function resume(restorePoint: RestorePoint, event: PlayableEvent, rundown
|
||||
* We only pass an event if we are hot reloading
|
||||
* @param {PlayableEvent} event only passed if we are changing the data if a playing timer
|
||||
*/
|
||||
export function reload(event?: PlayableEvent): string | undefined {
|
||||
export function updateLoaded(event?: PlayableEvent): string | undefined {
|
||||
// if there is no event loaded, nothing to do
|
||||
if (runtimeState.eventNow === null) {
|
||||
return;
|
||||
@@ -363,11 +363,11 @@ export function reload(event?: PlayableEvent): string | undefined {
|
||||
/**
|
||||
* Used in situations when we want to hot-reload all events without interrupting timer
|
||||
*/
|
||||
export function reloadAll(rundown: OntimeRundown) {
|
||||
export function updateAll(rundown: OntimeRundown) {
|
||||
const timedEvents = filterTimedEvents(rundown);
|
||||
loadNow(timedEvents);
|
||||
loadNext(timedEvents);
|
||||
reload(runtimeState.eventNow ?? undefined);
|
||||
updateLoaded(runtimeState.eventNow ?? undefined);
|
||||
}
|
||||
|
||||
export function start(state: RuntimeState = runtimeState): boolean {
|
||||
|
||||
Reference in New Issue
Block a user