mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
Unnecessary loop stopping
This commit is contained in:
2
menus.go
2
menus.go
@@ -220,8 +220,6 @@ func ExecShell() MenuFn {
|
|||||||
|
|
||||||
ui.DefaultEvtStream.ResetHandlers()
|
ui.DefaultEvtStream.ResetHandlers()
|
||||||
defer ui.DefaultEvtStream.ResetHandlers()
|
defer ui.DefaultEvtStream.ResetHandlers()
|
||||||
ui.StopLoop()
|
|
||||||
defer ui.Loop()
|
|
||||||
|
|
||||||
shell := config.Get("shell")
|
shell := config.Get("shell")
|
||||||
if err := c.Exec([]string{shell.Val, "-c", "echo '\033[0m' && clear && " + shell.Val}); err != nil {
|
if err := c.Exec([]string{shell.Val, "-c", "echo '\033[0m' && clear && " + shell.Val}); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user