fix: async runtime error

This commit is contained in:
xkeyC
2025-12-05 17:24:52 +08:00
parent 289691896d
commit 39ddea7254
8 changed files with 86 additions and 78 deletions

View File

@@ -86,7 +86,7 @@ class DownloadManager extends _$DownloadManager {
}
// Initialize the Rust downloader with optional speed limits
downloader_api.downloaderInit(
await downloader_api.downloaderInit(
workingDir: state.workingDir,
defaultDownloadDir: state.downloadDir,
uploadLimitBps: uploadLimitBps,

View File

@@ -41,7 +41,7 @@ final class DownloadManagerProvider
}
}
String _$downloadManagerHash() => r'f0fd818851be0d1c9e6774803aae465c33843cde';
String _$downloadManagerHash() => r'95a8105bb544c8a1996f321e1d0258c41e18effa';
abstract class _$DownloadManager extends $Notifier<DownloadManagerState> {
DownloadManagerState build();