feat: osc goto

- renamed previous goto to gotoid
This commit is contained in:
cv
2021-05-15 23:50:44 +02:00
parent f38823e077
commit 5959053e94
2 changed files with 17 additions and 6 deletions
+6 -5
View File
@@ -461,18 +461,15 @@ class EventTimer extends Timer {
if (eventIndex === -1) return;
this.pause();
this.loadEvent(eventIndex);
this.broadcastState();
this.loadEvent(eventIndex, true, true);
}
// Loads a given event
// load timers
// load selectedEventIndex
// load titles
loadEvent(eventIndex, type = 'load') {
loadEvent(eventIndex, type = 'load', broadcastChange = 'false') {
const e = this._eventlist[eventIndex];
if (e == null) return;
const start = e.timeStart == null || e.timeStart === '' ? 0 : e.timeStart;
@@ -503,6 +500,10 @@ class EventTimer extends Timer {
// look for event after
this._loadTitlesNext();
if (broadcastChange)
// broadcast current state
this.broadcastState();
}
_loadTitlesNow() {