1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-30 23:52:07 +03:00

send file works

This commit is contained in:
Zack Scholl 2018-10-17 07:41:13 -07:00
parent 93942f4e0c
commit 56e0068129
2 changed files with 2 additions and 2 deletions

View File

@ -358,7 +358,7 @@ func (cr *Croc) send(forceSend int, serverAddress string, tcpPorts []string, isL
if !bytes.HasPrefix(message, []byte("ready")) {
return errors.New("recipient refused file")
}
cr.StateString = "Transfer in progress..."
fmt.Fprintf(os.Stderr, "\rSending (->%s)...\n", otherIP)
// send file, compure hash simultaneously
startTransfer = time.Now()

View File

@ -31,7 +31,7 @@ func main() {
app := widgets.NewQApplication(len(os.Args), os.Args)
window := widgets.NewQMainWindow(nil, 0)
window.SetFixedSize2(300, 200)
window.SetFixedSize2(400, 150)
window.SetWindowTitle("🐊📦 croc")
widget := widgets.NewQWidget(nil, 0)