Skip to content

Commit

Permalink
Fix: enable pause [p] only for running or paused container
Browse files Browse the repository at this point in the history
  • Loading branch information
stokito committed Nov 27, 2020
1 parent 4e44c9d commit a59c7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion menus.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func ContainerMenu() MenuFn {
ui.StopLoop()
})
}
if c.Meta["state"] != "exited" || c.Meta["state"] != "created" {
if c.Meta["state"] != "exited" && c.Meta["state"] != "created" {
ui.Handle("/sys/kbd/p", func(ui.Event) {
if c.Meta["state"] == "paused" {
selected = "unpause"
Expand Down

0 comments on commit a59c7aa

Please sign in to comment.