forked from j62/ctbrec
1
0
Fork 0

Fire recording finished event for downloads

This commit is contained in:
0xboobface 2020-07-12 11:33:53 +02:00
parent 9bb18426a6
commit 3b9fb87d04
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,8 @@ import ctbrec.Config;
import ctbrec.Recording;
import ctbrec.Recording.State;
import ctbrec.StringUtil;
import ctbrec.event.EventBusHolder;
import ctbrec.event.RecordingStateChangedEvent;
import ctbrec.recorder.ProgressListener;
import ctbrec.recorder.Recorder;
import ctbrec.recorder.RecordingPinnedException;
@ -633,6 +635,8 @@ public class RecordingsTab extends Tab implements TabSelectionListener {
Platform.runLater(() -> {
recording.setStatus(FINISHED);
recording.setProgress(-1);
RecordingStateChangedEvent evt = new RecordingStateChangedEvent(target, recording.getStatus(), recording.getModel(), recording.getStartDate());
EventBusHolder.BUS.post(evt);
});
}
});