From 5098adcccc0a60e600bf4aeb01d74537d31ba111 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Sun, 9 Nov 2025 22:26:53 -0800 Subject: Further work on trnasfer context menus with Open With, Move to Trash, etc. and handling of multiple selection. --- Hotline/State/AppState.swift | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Hotline/State') 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 -- cgit