Skip to content

Commit

Permalink
Fixed issue where opening and closing data plotter without selecting …
Browse files Browse the repository at this point in the history
…regs would clear all selected regs
  • Loading branch information
ajn96 committed Jan 22, 2025
1 parent 76d78e8 commit 5f86491
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/DataPlotGUI.vb
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ Public Class DataPlotGUI
m_TopGUI.plotSettings.NumberPlots = numberPlotAreas

'save regs which were plotted
m_TopGUI.dataPlotRegs.Clear()
For Each reg In selectedRegList
m_TopGUI.dataPlotRegs.Add(reg)
Next
m_TopGUI.SaveDataPlotRegList()
If selectedRegList.Count > 0 Then
m_TopGUI.dataPlotRegs.Clear()
For Each reg In selectedRegList
m_TopGUI.dataPlotRegs.Add(reg)
Next
m_TopGUI.SaveDataPlotRegList()
End If
m_TopGUI.btn_plotData.Enabled = True
End Sub

Expand Down

0 comments on commit 5f86491

Please sign in to comment.