save containers view

This commit is contained in:
Michael T 2022-01-09 12:40:17 +05:00
parent 0d825a49c7
commit 8a1c705918

View file

@ -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 {