Skip to content

Commit 35f01bf

Browse files
committed
change timeline events to ensure the timeline is populated correctly on
load
1 parent a1c04a7 commit 35f01bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle/CaDoodleFile.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,13 +417,13 @@ public Thread deleteOperation(ICaDoodleOpperation op) {
417417
try {
418418
regenerateFrom(newTar).join();
419419
} catch (InterruptedException e) {
420-
// TODO Auto-generated catch block
421420
e.printStackTrace();
422421
}
423422
updateCurrentFromCache();
424423

425424
updateBoM();
426425
fireSaveSuggestion();
426+
fireTimelineUpdate();
427427
opperationRunner = null;
428428
});
429429
opperationRunner.start();
@@ -774,7 +774,7 @@ public File save() throws IOException {
774774
if (bom != null)
775775
bom.save();
776776
}
777-
777+
fireTimelineUpdate();
778778
return getSelf();
779779
}
780780

@@ -805,7 +805,7 @@ private void setTimelineImage(List<CSG> currentState, ICaDoodleOpperation op) th
805805
}
806806
do {
807807
try {
808-
Thread.sleep(100);
808+
Thread.sleep(10);
809809
} catch (InterruptedException e) {
810810
e.printStackTrace();
811811
return;
@@ -816,7 +816,7 @@ private void setTimelineImage(List<CSG> currentState, ICaDoodleOpperation op) th
816816
}
817817
System.err.println("Thumbnail saved successfully to " + imageCache.getAbsolutePath());
818818
}
819-
fireTimelineUpdate();
819+
//fireTimelineUpdate();
820820
}
821821

822822
private void fireTimelineUpdate() {

0 commit comments

Comments
 (0)