From 1f6e03979edb9e6c3d55bbaed95c36fd40527a3a Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Tue, 4 Dec 2018 17:08:44 +0100 Subject: [PATCH] Fix: ThumbCell resumes recordings This happens because the update services don't set the suspended property and ThumbCell copied the property from the updated model. So, suspended would be set to false, which would cause an update of the property change listener and that would restart the recording. --- client/src/main/java/ctbrec/ui/ThumbCell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/java/ctbrec/ui/ThumbCell.java b/client/src/main/java/ctbrec/ui/ThumbCell.java index ece9efce..8c5f9e05 100644 --- a/client/src/main/java/ctbrec/ui/ThumbCell.java +++ b/client/src/main/java/ctbrec/ui/ThumbCell.java @@ -492,7 +492,7 @@ public class ThumbCell extends StackPane { this.model.setPreview(model.getPreview()); this.model.setTags(model.getTags()); this.model.setUrl(model.getUrl()); - this.model.setSuspended(model.isSuspended()); + this.model.setSuspended(recorder.isSuspended(model)); update(); }