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
This commit is contained in:
Adam Cooper 2022-05-20 01:17:50 -04:00
parent a084c771b7
commit f3e6d604c2
1 changed files with 3 additions and 0 deletions

View File

@ -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
}
}