fix: ui process blocked by sendText/sendFile

This commit is contained in:
2026-02-05 03:08:18 +08:00
parent c35864d02a
commit 258ed65d63
3 changed files with 62 additions and 53 deletions

View File

@@ -34,12 +34,10 @@ func (s *Service) LoadHistory() {
return
}
defer file.Close()
var history []Transfer
var history []*Transfer
err = json.NewDecoder(file).Decode(&history)
if err != nil {
return
}
for _, item := range history {
s.StoreTransferToList(&item)
}
s.StoreTransfersToList(history)
}