gopeed
gopeed copied to clipboard
Add auto-start incomplete tasks on application startup
Implements automatic resumption of incomplete download tasks when the application launches, controlled via a user-configurable setting.
Changes
Configuration
- Added
autoStartTasksboolean field toExtraConfig(defaults tofalse) - Field persists in user settings alongside other application preferences
Application Startup
- On launch, if
autoStartTasksis enabled, callscontinueAllTasks()API - Leverages existing backend logic that respects
maxRunningconcurrency limits - Only affects paused/waiting tasks; skips running and completed tasks
Settings UI
- Added toggle switch in Download settings section
- Follows existing pattern used for
defaultDirectDownloadand similar options
Localization
- Added translations for EN, CN (simplified/traditional), JP, DE, FR, ES, RU
Implementation Note
Frontend-only change. No Go backend modifications required—existing Continue() and continueAll() methods already handle task resumption with proper concurrency control.
// In main.dart initialization
if (controller.downloaderConfig.value.extra.autoStartTasks) {
await api.continueAllTasks(null); // Resumes all incomplete tasks
}
Original prompt
This section details on the original issue you should resolve
<issue_title>添加打开软件自动开始未完成的任。</issue_title> <issue_description>RT</issue_description>
Comments on the Issue (you are @copilot in this section)
- Fixes GopeedLab/gopeed#1198
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.