This commit is contained in:
xkeyC 2023-11-05 16:36:47 +08:00
parent 21f58fc4bb
commit e5958bb8d2

View File

@ -105,6 +105,9 @@ class DownloaderDialogUIModel extends BaseUIModel {
try {
if (downloadTaskId != null) {
rustFii.cancelDownload(id: downloadTaskId!);
downloadTaskId = null;
} else {
Navigator.pop(context!, "cancel");
}
} catch (_) {}
}