fixed source repos not being restored properly

This commit is contained in:
Schnitzel5 2025-02-14 22:52:34 +01:00
parent 80bdfe7ee7
commit 9b85654c17

View file

@ -520,21 +520,21 @@ class Settings {
mangaExtensionsRepo = json['mangaExtensionsRepo'] is String
? [Repo(jsonUrl: json['mangaExtensionsRepo'])]
: (json['mangaExtensionsRepo'] as List)
.map((e) => Repo.fromJson(json))
.map((e) => Repo.fromJson(e))
.toList();
}
if (json['animeExtensionsRepo'] != null) {
animeExtensionsRepo = json['animeExtensionsRepo'] is String
? [Repo(jsonUrl: json['animeExtensionsRepo'])]
: (json['animeExtensionsRepo'] as List)
.map((e) => Repo.fromJson(json))
.map((e) => Repo.fromJson(e))
.toList();
}
if (json['novelExtensionsRepo'] != null) {
novelExtensionsRepo = json['novelExtensionsRepo'] is String
? [Repo(jsonUrl: json['novelExtensionsRepo'])]
: (json['novelExtensionsRepo'] as List)
.map((e) => Repo.fromJson(json))
.map((e) => Repo.fromJson(e))
.toList();
}
}