mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-16 19:58:09 +02:00
Bugfix: don't show 'Apps Updated' toast when nothing was updated (#1307)
This commit is contained in:
@@ -361,7 +361,7 @@ class _AppPageState extends State<AppPage> {
|
|||||||
app?.app.id != null ? [app!.app.id] : [],
|
app?.app.id != null ? [app!.app.id] : [],
|
||||||
globalNavigatorKey.currentContext,
|
globalNavigatorKey.currentContext,
|
||||||
);
|
);
|
||||||
if (app?.app.installedVersion != null && !trackOnly) {
|
if (res.isNotEmpty && !trackOnly) {
|
||||||
// ignore: use_build_context_synchronously
|
// ignore: use_build_context_synchronously
|
||||||
showMessage(tr('appsUpdated'), context);
|
showMessage(tr('appsUpdated'), context);
|
||||||
}
|
}
|
||||||
|
@@ -696,7 +696,7 @@ class AppsPageState extends State<AppsPage> {
|
|||||||
showError(e, context);
|
showError(e, context);
|
||||||
return <String>[];
|
return <String>[];
|
||||||
}).then((value) {
|
}).then((value) {
|
||||||
if (shouldInstallUpdates) {
|
if (value.isNotEmpty && shouldInstallUpdates) {
|
||||||
showMessage(tr('appsUpdated'), context);
|
showMessage(tr('appsUpdated'), context);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user