Fixed issue with update all

This commit is contained in:
Imran Remtulla
2022-08-27 03:01:08 -04:00
parent e7170aca48
commit 09791979d5
3 changed files with 70 additions and 56 deletions

View File

@@ -49,7 +49,7 @@ class _AppPageState extends State<AppPage> {
? () {
appsProvider
.downloadAndInstallLatestApp(
app!.app.id, context);
[app!.app.id], context);
}
: null,
child: Text(app?.app.installedVersion == null

View File

@@ -30,10 +30,8 @@ class _AppsPageState extends State<AppsPage> {
.read<SettingsProvider>()
.getInstallPermission()
.then((_) {
for (var e in existingUpdateAppIds) {
appsProvider.downloadAndInstallLatestApp(
e, context);
}
appsProvider.downloadAndInstallLatestApp(
existingUpdateAppIds, context);
});
},
icon: const Icon(Icons.update),