Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: auto updater should not block the launch process (#7427)

Lucasf73342d90295
diff --git a/frontend/appflowy_flutter/lib/shared/version_checker/version_checker.dart b/frontend/appflowy_flutter/lib/shared/version_checker/version_checker.dart
index 1718fbb123..6e50a922a7 100644
--- a/frontend/appflowy_flutter/lib/shared/version_checker/version_checker.dart
+++ b/frontend/appflowy_flutter/lib/shared/version_checker/version_checker.dart
@@ -54,7 +54,7 @@ class VersionChecker {
.nonNulls
.firstWhereOrNull((e) => e.os == ApplicationInfo.os);
} catch (e) {
- Log.error('Failed to check for updates: $e');
+ Log.info('Failed to check for updates: $e');
}
return null;
diff --git a/frontend/appflowy_flutter/lib/startup/tasks/auto_update_task.dart b/frontend/appflowy_flutter/lib/startup/tasks/auto_update_task.dart
index 0a55558ea5..b666392544 100644
--- a/frontend/appflowy_flutter/lib/startup/tasks/auto_update_task.dart
+++ b/frontend/appflowy_flutter/lib/startup/tasks/auto_update_task.dart
@@ -1,3 +1,5 @@
+import 'dart:async';
+
import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy/shared/version_checker/version_checker.dart';
import 'package:appflowy/startup/tasks/app_widget.dart';
@@ -26,7 +28,8 @@ class AutoUpdateTask extends LaunchTask {
return;
}
- await _setupAutoUpdater();
+ // don't use await here, because the auto updater is not a blocking operation
+ unawaited(_setupAutoUpdater());
ApplicationInfo.isCriticalUpdateNotifier.addListener(
_showCriticalUpdateDialog,