mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Fixed the issue
This commit is contained in:
parent
ee53d2447c
commit
28e75ebe1a
1 changed files with 5 additions and 1 deletions
|
|
@ -111,7 +111,11 @@ func (gui *Gui) returnFocus(g *gocui.Gui, v *gocui.View) error {
|
||||||
// always fall back to services view if there's no 'previous' view stored
|
// always fall back to services view if there's no 'previous' view stored
|
||||||
previousView, err = g.View("services")
|
previousView, err = g.View("services")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
gui.Log.Error(err)
|
// 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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return gui.switchFocus(g, v, previousView)
|
return gui.switchFocus(g, v, previousView)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue