mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-13 18:38:10 +02:00
Tweak use of attemptToCorrectInstallStatus
This commit is contained in:
@@ -730,7 +730,7 @@ class AppsProvider with ChangeNotifier {
|
|||||||
apps[i].installedVersion = null;
|
apps[i].installedVersion = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await saveApps(apps, attemptToCorrectInstallStatus: false);
|
await saveApps(apps, attemptToCorrectInstallStatus: !remove);
|
||||||
}
|
}
|
||||||
if (remove) {
|
if (remove) {
|
||||||
await removeApps(apps.map((e) => e.id).toList());
|
await removeApps(apps.map((e) => e.id).toList());
|
||||||
|
@@ -206,8 +206,7 @@ class SettingsProvider with ChangeNotifier {
|
|||||||
.map((e) => e as App)
|
.map((e) => e as App)
|
||||||
.toList();
|
.toList();
|
||||||
if (changedApps.isNotEmpty) {
|
if (changedApps.isNotEmpty) {
|
||||||
appsProvider.saveApps(changedApps,
|
appsProvider.saveApps(changedApps);
|
||||||
attemptToCorrectInstallStatus: false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
prefs?.setString('categories', jsonEncode(cats));
|
prefs?.setString('categories', jsonEncode(cats));
|
||||||
|
Reference in New Issue
Block a user