mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-31 21:00:15 +02:00
Bugfix: Get initial data on config import
This commit is contained in:
@@ -1516,7 +1516,7 @@ class AppsProvider with ChangeNotifier {
|
||||
return returnPath;
|
||||
}
|
||||
|
||||
Future<MapEntry<int, bool>> import(String appsJSON) async {
|
||||
Future<MapEntry<List<App>, bool>> import(String appsJSON) async {
|
||||
var decodedJSON = jsonDecode(appsJSON);
|
||||
var newFormat = decodedJSON is! List;
|
||||
List<App> importedApps =
|
||||
@@ -1550,8 +1550,8 @@ class AppsProvider with ChangeNotifier {
|
||||
}
|
||||
});
|
||||
}
|
||||
return MapEntry<int, bool>(
|
||||
importedApps.length, newFormat && decodedJSON['settings'] != null);
|
||||
return MapEntry<List<App>, bool>(
|
||||
importedApps, newFormat && decodedJSON['settings'] != null);
|
||||
}
|
||||
|
||||
@override
|
||||
|
Reference in New Issue
Block a user