@@ -568,7 +568,7 @@ private void initialize() {
568
568
replay .addListener ((v , ov , nv ) -> {
569
569
if (isDisabled ())
570
570
return ;
571
- //refreshRequest = true;
571
+
572
572
if (nv .intValue ()<0 ) {
573
573
current_x0_pt = dataService .calculateX0Index (-nv .intValue ());
574
574
if (current_x0_pt >0 )
@@ -720,8 +720,7 @@ public LineChartWidget setup(IMAVController control, int id) {
720
720
});
721
721
722
722
state .getReplayingProperty ().addListener ((o ,ov ,nv ) -> {
723
- setXResolution (timeFrame .get ());
724
- updateGraph (true ,0 );
723
+ updateGraph (true ,1 );
725
724
});
726
725
727
726
KeyFigureMetaData k1 = meta .getKeyFigureMap ().get (prefs .getInt (MAVPreferences .LINECHART_FIG_1 +id ,0 ));
@@ -799,9 +798,7 @@ public BooleanProperty getIsScrollingProperty() {
799
798
public void refreshChart () {
800
799
// current_x0_pt = dataService.calculateX0IndexByFactor(1);
801
800
setXResolution (timeFrame .get ());
802
- if (!isDisabled ()) {
803
801
updateRequest ();
804
- }
805
802
}
806
803
807
804
public void saveAsPng (String path ) {
@@ -859,7 +856,7 @@ else if(frame >= 30) {
859
856
refresh_step = REFRESH_RATE / dataService .getCollectorInterval_ms ();
860
857
861
858
if (!isDisabled ()) {
862
- updateRequest ();
859
+ // updateRequest();
863
860
Platform .runLater (() -> {
864
861
xAxis .setLabel ("Seconds (" +resolution_ms +"ms)" );
865
862
});
@@ -872,6 +869,7 @@ private void updateRequest() {
872
869
873
870
if (state ==null || id == -1 || isDisabled () || refreshRequest )
874
871
return ;
872
+
875
873
refreshRequest = true ;
876
874
if (!state .getReplayingProperty ().get ())
877
875
updateGraph (refreshRequest ,0 );
0 commit comments