mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 21:30:16 +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] : [],
|
||||
globalNavigatorKey.currentContext,
|
||||
);
|
||||
if (app?.app.installedVersion != null && !trackOnly) {
|
||||
if (res.isNotEmpty && !trackOnly) {
|
||||
// ignore: use_build_context_synchronously
|
||||
showMessage(tr('appsUpdated'), context);
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user