From 551643b11cf38b54d81bc18faef1c0be0ee56844 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Mon, 28 Aug 2023 19:51:49 -0400 Subject: [PATCH] More UI feedback when app updated (#814) --- lib/pages/app.dart | 5 +++++ lib/pages/apps.dart | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/lib/pages/app.dart b/lib/pages/app.dart index 710c3fb..45812d0 100644 --- a/lib/pages/app.dart +++ b/lib/pages/app.dart @@ -341,10 +341,15 @@ class _AppPageState extends State { app?.app.id != null ? [app!.app.id] : [], globalNavigatorKey.currentContext, settingsProvider); + if (app?.app.installedVersion != null && !trackOnly) { + // ignore: use_build_context_synchronously + showError(tr('appsUpdated'), context); + } if (res.isNotEmpty && mounted) { Navigator.of(context).pop(); } } catch (e) { + // ignore: use_build_context_synchronously showError(e, context); } } diff --git a/lib/pages/apps.dart b/lib/pages/apps.dart index 41c0f7d..835be74 100644 --- a/lib/pages/apps.dart +++ b/lib/pages/apps.dart @@ -689,6 +689,10 @@ class AppsPageState extends State { .catchError((e) { showError(e, context); return []; + }).then((value) { + if (shouldInstallUpdates) { + showError(tr('appsUpdated'), context); + } }); } });