mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 21:30:16 +02:00
BG update toggle has an effect
This commit is contained in:
@@ -339,7 +339,8 @@ class _AppPageState extends State<AppPage> {
|
||||
HapticFeedback.heavyImpact();
|
||||
var res = await appsProvider.downloadAndInstallLatestApps(
|
||||
app?.app.id != null ? [app!.app.id] : [],
|
||||
globalNavigatorKey.currentContext);
|
||||
globalNavigatorKey.currentContext,
|
||||
settingsProvider);
|
||||
if (res.isNotEmpty && mounted) {
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
|
@@ -381,7 +381,8 @@ class AppsPageState extends State<AppsPage> {
|
||||
: () {
|
||||
appsProvider.downloadAndInstallLatestApps(
|
||||
[listedApps[appIndex].app.id],
|
||||
globalNavigatorKey.currentContext).catchError((e) {
|
||||
globalNavigatorKey.currentContext,
|
||||
settingsProvider).catchError((e) {
|
||||
showError(e, context);
|
||||
return <String>[];
|
||||
});
|
||||
@@ -683,9 +684,8 @@ class AppsPageState extends State<AppsPage> {
|
||||
toInstall.addAll(trackOnlyUpdateIdsAllOrSelected);
|
||||
}
|
||||
appsProvider
|
||||
.downloadAndInstallLatestApps(
|
||||
toInstall, globalNavigatorKey.currentContext,
|
||||
settingsProvider: settingsProvider)
|
||||
.downloadAndInstallLatestApps(toInstall,
|
||||
globalNavigatorKey.currentContext, settingsProvider)
|
||||
.catchError((e) {
|
||||
showError(e, context);
|
||||
return <String>[];
|
||||
|
Reference in New Issue
Block a user