Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-31 13:10:09 +08:00
parent dbc7bcd0dd
commit 8964197b73
68 changed files with 560 additions and 293 deletions

View File

@@ -108,7 +108,7 @@ abstract final class Accounts {
static Future<void> set(AccountType key, Account account) async {
final oldAccount = accountMode[key.index]..type.remove(key);
accountMode[key.index] = account..type.add(key);
await Future.wait([account.onChange(), oldAccount.onChange()]);
await Future.wait([?account.onChange(), ?oldAccount.onChange()]);
if (!account.activated) await Request.buvidActive(account);
switch (key) {
case AccountType.main: