More UI feedback when app updated (#814)

This commit is contained in:
Imran Remtulla
2023-08-28 19:51:49 -04:00
parent 075ecae540
commit 551643b11c
2 changed files with 9 additions and 0 deletions

View File

@@ -341,10 +341,15 @@ class _AppPageState extends State<AppPage> {
app?.app.id != null ? [app!.app.id] : [], app?.app.id != null ? [app!.app.id] : [],
globalNavigatorKey.currentContext, globalNavigatorKey.currentContext,
settingsProvider); settingsProvider);
if (app?.app.installedVersion != null && !trackOnly) {
// ignore: use_build_context_synchronously
showError(tr('appsUpdated'), context);
}
if (res.isNotEmpty && mounted) { if (res.isNotEmpty && mounted) {
Navigator.of(context).pop(); Navigator.of(context).pop();
} }
} catch (e) { } catch (e) {
// ignore: use_build_context_synchronously
showError(e, context); showError(e, context);
} }
} }

View File

@@ -689,6 +689,10 @@ class AppsPageState extends State<AppsPage> {
.catchError((e) { .catchError((e) {
showError(e, context); showError(e, context);
return <String>[]; return <String>[];
}).then((value) {
if (shouldInstallUpdates) {
showError(tr('appsUpdated'), context);
}
}); });
} }
}); });