mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 15:09:10 +00:00
fix: roll state
fix issue when the call of roll() was resetting the state after trying to load titles
This commit is contained in:
@@ -252,7 +252,7 @@ export class EventTimer extends Timer {
|
|||||||
// look for events
|
// look for events
|
||||||
this.rollLoad();
|
this.rollLoad();
|
||||||
|
|
||||||
// broadcast state without recalling timer
|
// broadcast state without recalculating timer
|
||||||
this.broadcastState(false);
|
this.broadcastState(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1038,12 +1038,12 @@ export class EventTimer extends Timer {
|
|||||||
// do we need to change
|
// do we need to change
|
||||||
if (this.state === 'roll') return;
|
if (this.state === 'roll') return;
|
||||||
|
|
||||||
// load into event
|
|
||||||
this.rollLoad();
|
|
||||||
|
|
||||||
// set state
|
// set state
|
||||||
this.state = 'roll';
|
this.state = 'roll';
|
||||||
|
|
||||||
|
// load into event
|
||||||
|
this.rollLoad();
|
||||||
|
|
||||||
this.broadcastState();
|
this.broadcastState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user