mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
fix parsing configs
This commit is contained in:
@@ -291,8 +291,6 @@ class AccountConfig {
|
|||||||
|
|
||||||
final void Function() logout;
|
final void Function() logout;
|
||||||
|
|
||||||
final bool allowReLogin;
|
|
||||||
|
|
||||||
final List<AccountInfoItem> infoItems;
|
final List<AccountInfoItem> infoItems;
|
||||||
|
|
||||||
final bool Function(String url, String title)? checkLoginStatus;
|
final bool Function(String url, String title)? checkLoginStatus;
|
||||||
@@ -312,8 +310,7 @@ class AccountConfig {
|
|||||||
this.onLoginWithWebviewSuccess,
|
this.onLoginWithWebviewSuccess,
|
||||||
this.cookieFields,
|
this.cookieFields,
|
||||||
this.validateCookies,
|
this.validateCookies,
|
||||||
) : allowReLogin = true,
|
) : infoItems = const [];
|
||||||
infoItems = const [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class AccountInfoItem {
|
class AccountInfoItem {
|
||||||
|
@@ -657,7 +657,7 @@ class ComicSourceParser {
|
|||||||
|
|
||||||
Future<Res<List<Comic>>> Function(String? next, [String? folder])? loadNext;
|
Future<Res<List<Comic>>> Function(String? next, [String? folder])? loadNext;
|
||||||
|
|
||||||
if (_checkExists("favorites.loadComic")) {
|
if (_checkExists("favorites.loadComics")) {
|
||||||
loadComic = (int page, [String? folder]) async {
|
loadComic = (int page, [String? folder]) async {
|
||||||
Future<Res<List<Comic>>> func() async {
|
Future<Res<List<Comic>>> func() async {
|
||||||
try {
|
try {
|
||||||
|
@@ -86,7 +86,7 @@ class AccountsPage extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (element.account!.allowReLogin) {
|
if (element.data["account"] is List) {
|
||||||
bool loading = logic._reLogin[element.key] == true;
|
bool loading = logic._reLogin[element.key] == true;
|
||||||
yield ListTile(
|
yield ListTile(
|
||||||
title: Text("Re-login".tl),
|
title: Text("Re-login".tl),
|
||||||
|
Reference in New Issue
Block a user