Skip to content

Commit ff6b254

Browse files
committed
更新注释描述
1 parent d0d0c06 commit ff6b254

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

fluxDown/utils/resource-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ export function isSniffableContentType(contentType: string): boolean {
698698
*
699699
* 独立于 Content-Type 的判定路径:当服务器对媒体文件返回不规范的
700700
* Content-Type(text/plain、binary/octet-stream、空值、错误的 text/html)时,
701-
* 靠 URL 扩展名兜底命中。对标 cat-catch 的 CheckExtension 判定路径。
701+
* 靠 URL 扩展名兜底命中。
702702
*
703703
* 排除 image/other/magnet:媒体嗅探器不收图片(与 isSniffableContentType 一致,
704704
* 图片噪音大),magnet/other 无扩展名意义。下游 isWorthShowing 仍做分片/小文件过滤。

lib/src/services/external_download_service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const _tag = 'ExtDownSvc';
2525
/// 3. 本服务监听该信号:
2626
/// - 免打扰开启 → 不弹窗,直接按默认设置创建任务;
2727
/// - 否则首选**独立小窗**(PopupWindowService,原生窗口承载第二引擎,
28-
/// 置顶且不抢主窗口前台,对标迅雷浏览器下载弹窗);
28+
/// 置顶且不抢主窗口前台);
2929
/// - 原生宿主不可用时回退主窗口内快速下载对话框(恢复主窗口并前台激活)
3030
/// 4. 用户确认后由主引擎发送 ConfirmExternalDownload/BatchCreateTask 信号
3131
class ExternalDownloadService {
@@ -144,7 +144,7 @@ class ExternalDownloadService {
144144
logError(_tag, 'silent download: no entries or save dir, falling back');
145145
}
146146

147-
// ── 首选路径:独立小窗(不抢主窗口前台,对标迅雷浏览器下载弹窗)──
147+
// ── 首选路径:独立小窗(不抢主窗口前台)──
148148
// 小窗仍可见时忽略新请求(与主窗口对话框的去重语义一致)。
149149
if (PopupWindowService.instance.isVisible) {
150150
logInfo(_tag, 'popup still open, ignoring request');

lib/src/widgets/task_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class _TaskListState extends State<TaskList> {
9292
color: c.textPrimary,
9393
action: () => widget.onNewDownload?.call(),
9494
),
95-
// 对标迅雷:全部开始 / 全部暂停 常驻显示,不可用时置灰
95+
// 全部开始 / 全部暂停 常驻显示,不可用时置灰
9696
ContextMenuItem(
9797
icon: LucideIcons.play,
9898
label: s.startAll,

linux/runner/popup_window_host.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ G_BEGIN_DECLS
77

88
// 外部唤起下载小窗的原生宿主控制器(跨端弹窗契约 v1:外部下载请求——浏览器
99
// 扩展 / aria2 RPC / 管理 API——唤起时,弹出独立原生小窗承载第二个 Flutter
10-
// 引擎渲染快速下载表单,对标迅雷浏览器弹窗)。
10+
// 引擎渲染快速下载表单)。
1111
//
1212
// 职责:
1313
// - 在主引擎 messenger 上注册 fluxdown/popup_host 通道,响应 show/close,

native/cli/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! FluxDown CLI —— 对标 aria2c 的命令行下载客户端。
1+
//! FluxDown CLI
22
//!
33
//! 复用 [`fluxdown_api`] 的路径常量与 wire 类型作 typed HTTP 客户端,
44
//! 与运行中的 FluxDown App / headless server 通信(本机 API 服务,

native/cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const DEFAULT_URL: &str = "http://127.0.0.1:17800";
1616
/// 默认请求超时(秒),当命令行/环境/持久化配置都未指定时使用。
1717
const DEFAULT_TIMEOUT_SECS: u64 = 30;
1818

19-
/// FluxDown 命令行下载客户端(对标 aria2c)
19+
/// FluxDown 命令行下载客户端。
2020
#[derive(Debug, Parser)]
2121
#[command(name = "fluxdown", version, about, long_about = None)]
2222
struct Cli {

0 commit comments

Comments
 (0)