diff options
Diffstat (limited to 'Hotline/State/AppState.swift')
| -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 |