feat: context menu on downloaditem

This commit is contained in:
Adrian Castro
2024-03-26 20:52:15 +01:00
parent 37570b3ee0
commit a86b1a0ea3
2 changed files with 73 additions and 29 deletions

View File

@@ -84,6 +84,11 @@ export const DownloadManagerProvider: React.FC<{ children: ReactNode }> = ({
if (downloadItem?.downloadResumable) {
await downloadItem.downloadResumable.cancelAsync();
}
toastController.show("Download cancelled", {
burntOptions: { preset: "done" },
native: true,
duration: 500,
});
};
const startDownload = async (