Fix record until clock not showing up in recorded models tab in client /
erver mode
This commit is contained in:
parent
c93c372cb1
commit
1382f8fa1e
|
@ -77,12 +77,6 @@ public class SetStopDateAction {
|
|||
model.setRecordUntil(stopAt);
|
||||
model.setRecordUntilSubsequentAction(action);
|
||||
try {
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException e1) {
|
||||
// TODO Auto-generated catch block
|
||||
e1.printStackTrace();
|
||||
}
|
||||
recorder.stopRecordingAt(model);
|
||||
} catch (InvalidKeyException | NoSuchAlgorithmException | IOException e) {
|
||||
Dialogs.showError(source.getScene(), "Error", "Couln't set stop date", e);
|
||||
|
|
|
@ -506,6 +506,8 @@ public class RecordedModelsTab extends Tab implements TabSelectionListener {
|
|||
oldModel.getRecordingProperty().set(updatedModel.getRecordingProperty().get());
|
||||
oldModel.lastRecordedProperty().set(updatedModel.lastRecordedProperty().get());
|
||||
oldModel.lastSeenProperty().set(updatedModel.lastSeenProperty().get());
|
||||
oldModel.setRecordUntil(updatedModel.getRecordUntil());
|
||||
oldModel.setRecordUntilSubsequentAction(updatedModel.getRecordUntilSubsequentAction());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -764,6 +764,7 @@ public class NextGenLocalRecorder implements Recorder {
|
|||
Model m = models.get(index);
|
||||
m.setRecordUntil(model.getRecordUntil());
|
||||
m.setRecordUntilSubsequentAction(model.getRecordUntilSubsequentAction());
|
||||
LOG.debug("Stopping recording of model {} at {} and then {}", m, model.getRecordUntil(), m.getRecordUntilSubsequentAction());
|
||||
config.save();
|
||||
} else {
|
||||
throw new NoSuchElementException("Model " + model.getName() + " [" + model.getUrl() + "] not found in list of recorded models");
|
||||
|
|
Loading…
Reference in New Issue