[client] Fix file drop delivery and refine the files UI

Seed the delivery directory from the IPC caller when the active profile
carries no username, so the default profile gets a destination instead of
failing every incoming transfer. Deliver text-only offers without requiring
a destination directory at all.

In the UI, drop the status label from the send picker rows, keep the dot,
and give the transfer list per-kind icons: a quote for text, a file with an
up or down arrow for files.
This commit is contained in:
Zoltan Papp
2026-09-05 19:12:43 +02:00
parent 967f647183
commit 50197c7355
5 changed files with 86 additions and 42 deletions
+13
View File
@@ -11,6 +11,19 @@ import (
)
func deliver(spool *Spool, offer Offer, destDir string) ([]string, error) {
files := false
for _, f := range offer.Files {
if f.Kind != KindText {
files = true
break
}
}
if !files {
spool.Remove(offer.ID)
return nil, nil
}
if destDir == "" {
return nil, fmt.Errorf("no destination directory configured")
}