Removed Steam Source (existing apps auto-switched to HTML) (#1244) + bugfixes

This commit is contained in:
Imran Remtulla
2024-01-06 23:37:27 -05:00
parent 06a761c0d0
commit 09b24b36f2
4 changed files with 27 additions and 8 deletions

View File

@@ -527,9 +527,10 @@ class AppsProvider with ChangeNotifier {
? 0
: 1;
case InstallMethodSettings.root:
code = (await NativeFeatures.installWithRoot(apkFilePath: file.file.path))
? 0
: 1;
code =
(await NativeFeatures.installWithRoot(apkFilePath: file.file.path))
? 0
: 1;
}
bool installed = false;
if (code != null && code != 0 && code != 3) {
@@ -1300,6 +1301,9 @@ class AppsProvider with ChangeNotifier {
settingsProvider.prefs?.setInt(key, value);
} else if (value is bool) {
settingsProvider.prefs?.setBool(key, value);
} else if (value is List) {
settingsProvider.prefs
?.setStringList(key, value.map((e) => e as String).toList());
} else {
settingsProvider.prefs?.setString(key, value as String);
}