Skip to content

Commit effb9ee

Browse files
committed
PulseAverage: Never do a full update
Since the initial introduction of pulse averaging we always did a full update when something changed. But in fact we only ever need to redo the PA plot. So let's just do that.
1 parent f4b1b58 commit effb9ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Packages/MIES/MIES_PulseAveraging.ipf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ Function PA_CheckProc_Common(cba) : CheckBoxControl
794794

795795
switch(cba.eventCode)
796796
case 2: // mouse up
797-
UpdateSweepPlot(cba.win)
797+
PA_Update(cba.win)
798798
break
799799
endswitch
800800

@@ -807,7 +807,7 @@ Function PA_CheckProc_Individual(cba) : CheckBoxControl
807807
switch(cba.eventCode)
808808
case 2: // mouse up
809809
BSP_SetIndividualControlStatus(cba.win)
810-
UpdateSweepPlot(cba.win)
810+
PA_Update(cba.win)
811811
break
812812
endswitch
813813

@@ -820,7 +820,7 @@ Function PA_CheckProc_Average(cba) : CheckBoxControl
820820
switch(cba.eventCode)
821821
case 2: // mouse up
822822
BSP_SetDeconvControlStatus(cba.win)
823-
UpdateSweepPlot(cba.win)
823+
PA_Update(cba.win)
824824
break
825825
endswitch
826826

@@ -849,7 +849,7 @@ Function PA_SetVarProc_Common(sva) : SetVariableControl
849849
case 1: // mouse up
850850
case 2: // Enter key
851851
case 3: // Live update
852-
UpdateSweepPlot(sva.win)
852+
PA_Update(sva.win)
853853
break
854854
endswitch
855855

0 commit comments

Comments
 (0)