mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
reduce description lengths
This commit is contained in:
parent
f6d862eac0
commit
eb0909033e
1 changed files with 6 additions and 0 deletions
|
@ -1696,6 +1696,9 @@ func (c *Client) createEmptyFileAndFinish(fileInfo FileInfo, i int) (err error)
|
|||
} else {
|
||||
description = " " + description
|
||||
}
|
||||
if len(description) > 20 {
|
||||
description = description[:17] + "..."
|
||||
}
|
||||
c.bar = progressbar.NewOptions64(1,
|
||||
progressbar.OptionOnCompletion(func() {
|
||||
c.fmtPrintUpdate()
|
||||
|
@ -1872,6 +1875,9 @@ func (c *Client) setBar() {
|
|||
} else if !c.Options.IsSender {
|
||||
description = " " + description
|
||||
}
|
||||
if len(description) > 20 {
|
||||
description = description[:17] + "..."
|
||||
}
|
||||
c.bar = progressbar.NewOptions64(
|
||||
c.FilesToTransfer[c.FilesToTransferCurrentNum].Size,
|
||||
progressbar.OptionOnCompletion(func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue