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 {
|
if err == gocui.ErrQuit {
|
||||||
break
|
break
|
||||||
} else if err == gui.Errors.ErrSubProcess {
|
} 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
|
// preparing the state for when we return
|
||||||
gui.pushPreviousView(gui.currentViewName())
|
gui.pushPreviousView(gui.currentViewName())
|
||||||
// giving goEvery goroutines time to finish
|
// giving goEvery goroutines time to finish
|
||||||
|
|
@ -30,8 +32,6 @@ func (gui *Gui) RunWithSubprocesses() error {
|
||||||
return err
|
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
|
// ensuring we render e.g. the logs of the currently selected item upon return
|
||||||
gui.State.Panels.Main.ObjectKey = ""
|
gui.State.Panels.Main.ObjectKey = ""
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue