Fix issue where logs were buggy after returning from subprocess

Turns out that upon switching to a subprocess we were cancelling ALL
periodic tasks, which includes re-rendering the main view ever 30ms.
This completely broke our log rendering and meant that it only updated
when an event occurred
This commit is contained in:
Jesse Duffield 2024-05-26 13:02:54 +10:00
parent 8a0fcf99f4
commit 630ea7d324

View file

@ -176,11 +176,9 @@ func (gui *Gui) goEvery(interval time.Duration, function func() error) {
ticker := time.NewTicker(interval)
defer ticker.Stop()
for range ticker.C {
if gui.PauseBackgroundThreads {
return
if !gui.PauseBackgroundThreads {
_ = function()
}
_ = function()
}
}()
}