From f3e6d604c2371b27ec874de957ba79593ebd41e1 Mon Sep 17 00:00:00 2001 From: Adam Cooper Date: Fri, 20 May 2022 01:17:50 -0400 Subject: [PATCH] FIX #8 Add sleep to launch function Add sleep to launch function to give the launches time to start up before quitting out of breakfast stomps on them --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index d2902a3..543ef2c 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( "os" "os/exec" "strings" + "time" tea "github.com/charmbracelet/bubbletea" ) @@ -112,6 +113,8 @@ func launch(m model) tea.Cmd { } } + time.Sleep(2000 * time.Millisecond) + return result } }