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:
parent
93942f4e0c
commit
56e0068129
@ -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()
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user