Send text to spinner if active

This commit is contained in:
Ettore Di Giacinto 2019-12-12 23:49:15 +01:00
parent 1f60d591d5
commit adda44a752
No known key found for this signature in database
GPG Key ID: 1ADA699B145A2D1C

View File

@ -67,10 +67,10 @@ func msg(level string, msg ...interface{}) {
levelMsg = emoji.Sprint(levelMsg)
//if s.Active() {
// SpinnerText(levelMsg, "")
// return
// }
if s.Active() {
SpinnerText(levelMsg, "")
return
}
cmd := []interface{}{}
for _, f := range msg {