Bugfix: don't show 'Apps Updated' toast when nothing was updated (#1307)

This commit is contained in:
Imran Remtulla
2024-01-20 16:18:19 -05:00
parent 4aace63cd7
commit 62dc7fd88b
2 changed files with 2 additions and 2 deletions

View File

@@ -361,7 +361,7 @@ class _AppPageState extends State<AppPage> {
app?.app.id != null ? [app!.app.id] : [],
globalNavigatorKey.currentContext,
);
if (app?.app.installedVersion != null && !trackOnly) {
if (res.isNotEmpty && !trackOnly) {
// ignore: use_build_context_synchronously
showMessage(tr('appsUpdated'), context);
}

View File

@@ -696,7 +696,7 @@ class AppsPageState extends State<AppsPage> {
showError(e, context);
return <String>[];
}).then((value) {
if (shouldInstallUpdates) {
if (value.isNotEmpty && shouldInstallUpdates) {
showMessage(tr('appsUpdated'), context);
}
});