forked from Mirrors/bubbletea
Condense/scope init cmd
This commit is contained in:
parent
c5ed2b4a01
commit
ad19c664fe
3
tea.go
3
tea.go
|
@ -340,8 +340,7 @@ func (p *Program) Start() error {
|
||||||
|
|
||||||
// Initialize program
|
// Initialize program
|
||||||
model := p.initialModel
|
model := p.initialModel
|
||||||
initCmd := model.Init()
|
if initCmd := model.Init(); initCmd != nil {
|
||||||
if initCmd != nil {
|
|
||||||
go func() {
|
go func() {
|
||||||
cmds <- initCmd
|
cmds <- initCmd
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in New Issue