Fix record until clock not showing up in recorded models tab in client /

erver mode
This commit is contained in:
0xb00bface 2021-08-13 18:54:30 +02:00
parent c93c372cb1
commit 1382f8fa1e
3 changed files with 3 additions and 6 deletions

View File

@ -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);

View File

@ -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());
}
}
}

View File

@ -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");