mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-21 23:01:03 +00:00
Fixed a sugestion
This commit is contained in:
parent
28e75ebe1a
commit
d10410e787
1 changed files with 2 additions and 6 deletions
|
|
@ -109,13 +109,9 @@ func (gui *Gui) returnFocus(g *gocui.Gui, v *gocui.View) error {
|
|||
previousView, err := g.View(gui.State.PreviousView)
|
||||
if err != nil {
|
||||
// always fall back to services view if there's no 'previous' view stored
|
||||
previousView, err = g.View("services")
|
||||
previousView, err = g.View(gui.initiallyFocusedViewName())
|
||||
if err != nil {
|
||||
// Or fall back to the containers view if we are not in a docker-compose project
|
||||
previousView, err = g.View("containers")
|
||||
if err != nil {
|
||||
gui.Log.Error(err)
|
||||
}
|
||||
gui.Log.Error(err)
|
||||
}
|
||||
}
|
||||
return gui.switchFocus(g, v, previousView)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue