feat: add auto-start incomplete tasks on application startup (#1203)

This commit is contained in:
Copilot authored and GitHub committed 2026-01-05 21:11:42 +08:00
1 parent 24db9bb58b
commit 71c9e6947a
13 files changed
+50 -8

No files matched your search

+10
View File
@@ -133,6 +133,16 @@ Future<void> init(Args args) async {
logger.e("load config fail", e);
}
// Auto-start incomplete tasks if enabled
if (controller.downloaderConfig.value.extra.autoStartTasks) {
try {
await api.continueAllTasks(null);
logger.i("auto-start tasks completed");
} catch (e) {
logger.w("auto-start tasks fail", e);
}
}
() async {
if (Util.isDesktop()) {
try {