mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-21 23:01:03 +00:00
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:
parent
8a0fcf99f4
commit
630ea7d324
1 changed files with 2 additions and 4 deletions
|
|
@ -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()
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue