mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
save containers view
This commit is contained in:
parent
0d825a49c7
commit
8a1c705918
1 changed files with 2 additions and 2 deletions
|
|
@ -21,6 +21,8 @@ func (gui *Gui) RunWithSubprocesses() error {
|
|||
if err == gocui.ErrQuit {
|
||||
break
|
||||
} else if err == gui.Errors.ErrSubProcess {
|
||||
// pop here so we don't stack up view names
|
||||
gui.popPreviousView()
|
||||
// preparing the state for when we return
|
||||
gui.pushPreviousView(gui.currentViewName())
|
||||
// giving goEvery goroutines time to finish
|
||||
|
|
@ -30,8 +32,6 @@ func (gui *Gui) RunWithSubprocesses() error {
|
|||
return err
|
||||
}
|
||||
|
||||
// pop here so we don't stack up view names
|
||||
gui.popPreviousView()
|
||||
// ensuring we render e.g. the logs of the currently selected item upon return
|
||||
gui.State.Panels.Main.ObjectKey = ""
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue