Welp, technically better?

This commit is contained in:
2026-02-23 23:21:17 +00:00
parent f34cbfd23b
commit f40894577d
3 changed files with 13 additions and 6 deletions
+6 -4
View File
@@ -67,9 +67,11 @@ func streamingWindow(bus *events.Bus, doc *dom.DOM) {
bus.Emit(ui.StartStreamingReqEv{})
bus.On(ui.StreamDataEv{}, func(e any) {
sd := e.(ui.StreamDataEv)
box.SetText(sd.Str)
bus.Emit(ui.ForceRedraw{})
bus.Emit(ui.RedrawEv{
Fn: func() {
sd := e.(ui.StreamDataEv)
box.SetText(sd.Str)
},
})
})
}