Bugfix for previous commit

This commit is contained in:
Imran Remtulla
2023-03-17 22:49:12 -04:00
parent c0120f4e40
commit 0f3e029312

View File

@@ -149,6 +149,7 @@ class AppsProvider with ChangeNotifier {
apps[app.id]!.downloadProgress = 0;
notifyListeners();
}
try {
var fileName =
'${app.id}-${app.latestVersion}-${app.preferredApkIndex}.apk';
String downloadUrl = await SourceProvider()
@@ -199,6 +200,12 @@ class AppsProvider with ChangeNotifier {
}
}
return DownloadedApk(app.id, downloadedFile);
} finally {
if (apps[app.id] != null) {
apps[app.id]!.downloadProgress = null;
notifyListeners();
}
}
}
bool areDownloadsRunning() => apps.values