mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
Fix: enable pause [p] only for running or paused container
This commit is contained in:
parent
4e44c9d5f7
commit
a59c7aab3c
2
menus.go
2
menus.go
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user