Bug Fixes
- Fix URL downloads saving as "undefined" — formatOptionsForEngine was converting
undefinedoption values to the literal string"undefined", causing aria2 to use it as the output filename for HTTP/FTP downloads when no custom filename was specified. - Harden task name resolution — getTaskName, getFileNameFromFile, and ellipsis now guard against
undefined/null/empty inputs to prevent fallback failures.
New Features
- Clipboard auto-paste on New Task dialog — When opening the New Task dialog, the URI field is auto-filled if the clipboard contains a download link (HTTP/HTTPS/FTP/Magnet/Thunder). Uses Tauri's native clipboard plugin to avoid the macOS system Paste permission popup.
- Auto-detect clipboard on window focus — When switching back to Motrix, the app checks the clipboard for new download links and automatically opens the New Task dialog. Duplicate links are ignored.
Dependencies
- Added
tauri-plugin-clipboard-managerfor native clipboard access.