fix(web): wait for the saved analytics preference (#1656)

This commit is contained in:
Lykin authored and GitHub committed 2026-11-10 15:00:15 +08:00
1 parent a34383a7e2
commit 392ee36137
3 files changed
+20 -2

No files matched your search

@@ -19,7 +19,7 @@ Future<DownloaderConfig> loadDownloaderConfig({
config = await load();
} catch (error, stackTrace) {
onLoadError?.call(error, stackTrace);
config = DownloaderConfig();
config = DownloaderConfig()..extra.analyticsEnabled = false;
loaded = false;
}
final changed = await initDownloaderConfig(config, defaultDownloadDir: defaultDownloadDir);