diff --git a/lib/app_state.dart b/lib/app_state.dart index 317f4a7..b6cd9e4 100644 --- a/lib/app_state.dart +++ b/lib/app_state.dart @@ -434,7 +434,11 @@ class AppState extends ChangeNotifier { /// check. A conclusive result (blocked or not) means the credentials are /// valid; null means the connection/credentials failed. Also surfaces the /// [ActiveBlockDialog] if the user turns out to be blocked. + /// + /// Simulate mode has no real account to check against, so there's nothing + /// to test - it always reports success. Future testConnection(BuildContext context) async { + if (uploadMode == UploadMode.simulate) return true; final result = await checkActiveBlock(); if (result == true) { if (context.mounted) _showActiveBlockDialog(context);