mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-16 19:58:09 +02:00
More UI feedback when app updated (#814)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user