use oncompletion
This commit is contained in:
parent
457d8b18ad
commit
ef76aa67aa
|
|
@ -209,7 +209,7 @@ func (s *Session) receiveData(pathToFile string, fileSize int64) error {
|
|||
bar = progressbar.NewOptions64(
|
||||
fileSize,
|
||||
progressbar.OptionOnCompletion(func() {
|
||||
fmt.Println(" sent.")
|
||||
fmt.Println(" ✔️")
|
||||
}),
|
||||
progressbar.OptionSetWidth(8),
|
||||
progressbar.OptionSetDescription(fname),
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ func (s *Session) onBufferedAmountLow() func() {
|
|||
s.bar = progressbar.NewOptions64(
|
||||
s.fileSize,
|
||||
progressbar.OptionOnCompletion(func() {
|
||||
fmt.Println(" sent.")
|
||||
fmt.Println(" ✔️")
|
||||
}),
|
||||
progressbar.OptionSetWidth(8),
|
||||
progressbar.OptionSetDescription(s.fname),
|
||||
|
|
|
|||
Loading…
Reference in New Issue