diff options
| author | Dustin Mierau <dustin@mierau.me> | 2025-11-09 22:26:53 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2025-11-09 22:26:53 -0800 |
| commit | 5098adcccc0a60e600bf4aeb01d74537d31ba111 (patch) | |
| tree | eafb6b4abe4aad903d5e1e94404800b0f5f457ba /Hotline/State | |
| parent | 6cfa1db09055a3b4ea64d3586a0b439d13498db6 (diff) | |
Further work on trnasfer context menus with Open With, Move to Trash, etc. and handling of multiple selection.
Diffstat (limited to 'Hotline/State')
| -rw-r--r-- | Hotline/State/AppState.swift | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Hotline/State/AppState.swift b/Hotline/State/AppState.swift index 2d7820b..e268ba2 100644 --- a/Hotline/State/AppState.swift +++ b/Hotline/State/AppState.swift @@ -57,6 +57,14 @@ final class AppState { // Remove from transfers list self.transfers.remove(at: transferIndex) } + + /// Cancel specified transfers + @MainActor + func cancelTransfers(ids: [UUID]) { + for transferID in ids { + self.cancelTransfer(id: transferID) + } + } /// Cancel all active transfers @MainActor |