mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 20:48:40 +00:00
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user