Skip to content

Commit

Permalink
set testing flag on viewupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Oct 25, 2024
1 parent ab662b0 commit 77842e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions leabra/looper.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func LooperUpdateNetView(man *looper.Manager, viewupdt *netview.ViewUpdate, net
if curTime != etime.Cycle {
loop.OnEnd.Add("GUI:UpdateNetView", func() {
ctrUpdateFunc(curTime)
viewupdt.Testing = m == etime.Test
viewupdt.UpdateTime(curTime)
})
}
Expand All @@ -134,6 +135,7 @@ func LooperUpdateNetView(man *looper.Manager, viewupdt *netview.ViewUpdate, net
cycLoop.OnEnd.Add("GUI:UpdateNetView", func() {
cyc := cycLoop.Counter.Cur
ctrUpdateFunc(etime.Cycle)
viewupdt.Testing = m == etime.Test
viewupdt.UpdateCycle(cyc)
})
}
Expand Down

0 comments on commit 77842e7

Please sign in to comment.