fix: send acnOnMsg via go routine

This commit is contained in:
decentral1se 2023-07-27 22:04:51 +02:00
parent e62c886381
commit 477cfb39ae
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

10
main.go
View File

@ -79,11 +79,13 @@ func main() {
tea.WithMouseAllMotion(),
)
if acnFlag {
go func() {
p.Send(acnOnMsg{})
}()
}
if err := p.Start(); err != nil {
log.Fatal(err)
}
if acnFlag {
p.Send(acnOnMsg{})
}
}