Added a log for prev. commit

This commit is contained in:
Imran Remtulla
2022-12-12 20:56:14 -05:00
parent f3b1ca4541
commit 317b5ac83a
2 changed files with 7 additions and 1 deletions

View File

@@ -170,6 +170,7 @@
"pleaseAllowInstallPerm": "Please allow Obtainium to install Apps",
"trackOnly": "Track-Only",
"errorWithHttpStatusCode": "Error {}",
"versionCorrectionDisabled": "Version correction disabled (plugin doesn't seem to work)",
"tooManyRequestsTryAgainInMinutes": {
"one": "Too many requests (rate limited) - try again in {} minute",
"other": "Too many requests (rate limited) - try again in {} minutes"

View File

@@ -428,7 +428,12 @@ class AppsProvider with ChangeNotifier {
}
Future<bool> doesInstalledAppsPluginWork() async {
return (await InstalledApps.getAppInfo(obtainiumId)).versionName != null;
bool res =
(await InstalledApps.getAppInfo(obtainiumId)).versionName != null;
if (!res) {
logs.add(tr('versionCorrectionDisabled'));
}
return res;
}
// If the App says it is installed but installedInfo is null, set it to not installed