mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 09:23:51 +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
|
||||
this.rollLoad();
|
||||
|
||||
// broadcast state without recalling timer
|
||||
// broadcast state without recalculating timer
|
||||
this.broadcastState(false);
|
||||
}
|
||||
}
|
||||
@@ -1038,12 +1038,12 @@ export class EventTimer extends Timer {
|
||||
// do we need to change
|
||||
if (this.state === 'roll') return;
|
||||
|
||||
// load into event
|
||||
this.rollLoad();
|
||||
|
||||
// set state
|
||||
this.state = 'roll';
|
||||
|
||||
// load into event
|
||||
this.rollLoad();
|
||||
|
||||
this.broadcastState();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user