[client] Fix download option in menu

This commit is contained in:
Abhishek Shroff
2025-05-18 10:54:38 +05:30
parent feade88a8d
commit 0e4ebc1c45
+2 -2
View File
@@ -157,8 +157,8 @@ void handleOption(BuildContext context, Iterable<Resource> resources, MenuOption
break;
case MenuOption.download:
for (final r in resources) {
if (r.dir) {
context.read<DownloadManager>().downloadResource(r);
if (!r.dir) {
downloadResource(context, r);
}
}
break;