check isDisableAccount and isDisableAb before pull ab / group

This commit is contained in:
rustdesk 2024-03-25 20:14:34 +08:00
parent 49f717fcf8
commit 3dc6e576df
2 changed files with 2 additions and 0 deletions

View File

@ -110,6 +110,7 @@ class AbModel {
Future<void> _pullAb(
{required ForcePullAb? force, required bool quiet}) async {
if (bind.isDisableAb()) return;
debugPrint("pullAb, force: $force, quiet: $quiet");
if (!gFFI.userModel.isLogin) return;
if (force == null && listInitialized && current.initialized) return;

View File

@ -23,6 +23,7 @@ class UserModel {
UserModel(this.parent);
void refreshCurrentUser() async {
if (bind.isDisableAccount()) return;
final token = bind.mainGetLocalOption(key: 'access_token');
if (token == '') {
await updateOtherModels();