fix typos

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-05 11:35:47 +08:00
parent b4a46133be
commit ea52dd4484
51 changed files with 162 additions and 162 deletions

View File

@@ -77,7 +77,7 @@ abstract class Accounts {
}
}
await Future.wait(
(accountMode.toSet()..removeWhere((i) => i.activited)).map(
(accountMode.toSet()..removeWhere((i) => i.activated)).map(
Request.buvidActive,
),
);
@@ -93,14 +93,14 @@ abstract class Accounts {
}
static Future<void> deleteAll(Set<Account> accounts) async {
var isloginMain = Accounts.main.isLogin;
var isLoginMain = Accounts.main.isLogin;
for (int i = 0; i < AccountType.values.length; i++) {
if (accounts.contains(accountMode[i])) {
accountMode[i] = AnonymousAccount();
}
}
await Future.wait(accounts.map((i) => i.delete()));
if (isloginMain && !Accounts.main.isLogin) {
if (isLoginMain && !Accounts.main.isLogin) {
await LoginUtils.onLogoutMain();
}
}
@@ -109,7 +109,7 @@ abstract class Accounts {
await (accountMode[key.index]..type.remove(key)).onChange();
accountMode[key.index] = account..type.add(key);
await account.onChange();
if (!account.activited) await Request.buvidActive(account);
if (!account.activated) await Request.buvidActive(account);
switch (key) {
case AccountType.main:
await (account.isLogin