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

@@ -96,6 +96,13 @@ func (s *Service) CancelTransfer(transferID string) {
}
}
func (s *Service) StoreTransfersToList(transfers []*Transfer) {
for _, transfer := range transfers {
s.transferList.Store(transfer.ID, transfer)
}
s.NotifyTransferListUpdate()
}
func (s *Service) StoreTransferToList(transfer *Transfer) {
s.transferList.Store(transfer.ID, transfer)
s.NotifyTransferListUpdate()