Skip to content

[Feature] #1132 增加后台任务功能#5435

Draft
NoClassFoundError wants to merge 32 commits intoHMCL-dev:mainfrom
NoClassFoundError:1132backgroundtask
Draft

[Feature] #1132 增加后台任务功能#5435
NoClassFoundError wants to merge 32 commits intoHMCL-dev:mainfrom
NoClassFoundError:1132backgroundtask

Conversation

@NoClassFoundError
Copy link
Copy Markdown
Contributor

No description provided.

@NoClassFoundError
Copy link
Copy Markdown
Contributor Author

#1132

@burningtnt
Copy link
Copy Markdown
Member

需要有合理的方法阻止并发冲突

@Damselettecolumbiahyperseleneia
Copy link
Copy Markdown

cc @burningtnt

@NoClassFoundError
Copy link
Copy Markdown
Contributor Author

@3gf8jv4dv cc

@NoClassFoundError NoClassFoundError marked this pull request as ready for review March 21, 2026 10:13
@Minecraft269
Copy link
Copy Markdown

UI是不是还得优化一下 现在看起来怪怪的 (和其它页面风格不一致)
image
特别是这玩意
image

还有 类似于(其它2个)这个提示 是不是可以放在画布的中间

@NoClassFoundError
Copy link
Copy Markdown
Contributor Author

哦对这确实是个问题,等我修修

@Minecraft269
Copy link
Copy Markdown

Minecraft269 commented Mar 21, 2026

image 这个按钮是否需要弄得明显些(例如直接放在下面?)?或在设置中调整默认选项(默认不跑后台需要改设置)? image image

emmm.....

image 这个滚动条 是不是有点....(这个任务管理器还没有tooltip) image image 将任务移动到后台任务后在点击此任务即可复现(且没有任务归类(在改UI前的一个版本 这个版本直接不显示所以推断可能也没有任务归类))

不知道为什么它这个会叠界面(如视频所示)

QQ2026321-211510.mp4

(毕竟还在开发所以有一堆bug(可能我还没发现))

@NoClassFoundError
Copy link
Copy Markdown
Contributor Author

我去,我的队列检查怎么没生效,而且右下角的按钮应该是关闭才对

@NoClassFoundError
Copy link
Copy Markdown
Contributor Author

啥叫任务未归档
还有为什么我在@列表里找不到你

@Minecraft269
Copy link
Copy Markdown

啥叫任务未归档 还有为什么我在@列表里找不到你

是归类

@NoClassFoundError NoClassFoundError marked this pull request as draft March 21, 2026 14:37
@Minecraft269
Copy link
Copy Markdown

Minecraft269 commented Mar 21, 2026

image image 手动取消的还失败吗?

@Minecraft269
Copy link
Copy Markdown

话说是不是应该在有后台任务的时候应该在标题栏(或其它显眼的位置)显示后台任务的入口?

@Minecraft269
Copy link
Copy Markdown

image image

@NoClassFoundError
Copy link
Copy Markdown
Contributor Author

image image 手动取消的还失败吗?

这个被统一归到了失败,你点一下就能看到被取消的说明

@NoClassFoundError
Copy link
Copy Markdown
Contributor Author

话说是不是应该在有后台任务的时候应该在标题栏(或其它显眼的位置)显示后台任务的入口?

你现在安装的话如果没开自动移交后台会提示你任务被挂起,不过你这个确实是个好主意,我研究一下

@NoClassFoundError
Copy link
Copy Markdown
Contributor Author

image image 手动取消的还失败吗?

这个被统一归到了失败,你点一下就能看到被取消的说明

但是确实有必要改一下说明

task.kind.mod_update=模组
task.kind.modpack_install=整合包
task.kind.other=任务
task.auto_background.enqueued="%1$s" 已加入后台任务队列
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.auto_background.enqueued="%1$s" 已加入后台任务队列
task.auto_background.enqueued=%1$s已加入后台任务队列

task.kind.mod_update=模組
task.kind.modpack_install=整合包
task.kind.other=任務
task.auto_background.enqueued="%1$s" 已加入後臺任務佇列
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.auto_background.enqueued="%1$s" 已加入後臺任務佇列
task.auto_background.enqueued=%1$s」已加入後台任務佇列

task.kind.game_install=遊戲
task.kind.java_download=Java
task.kind.mod_update=模組
task.kind.modpack_install=整合包
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.kind.modpack_install=整合包
task.kind.modpack_install=模組包

task.kind.other=任務
task.auto_background.enqueued="%1$s" 已加入後臺任務佇列
task.manage=任務管理器
task.manage.hint=檢視和管理後臺下載任務
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.manage.hint=檢視和管理後臺下載任務
task.manage.hint=檢視和管理後台下載任務

task.auto_background.enqueued="%1$s" 已加入後臺任務佇列
task.manage=任務管理器
task.manage.hint=檢視和管理後臺下載任務
task.move_to_background=將任務移至後臺
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.move_to_background=將任務移至後臺
task.move_to_background=將任務移至後台

task.toast.success=任務完成:%s
task.unnamed=未命名任務
task.waiting=任務正在佇列中等待
task.waiting_for_background=有後臺任務正在進行中,本任務將在後臺任務全部完成後自動開始。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.waiting_for_background=有後臺任務正在進行中,本任務將在後臺任務全部完成後自動開始
task.waiting_for_background=有後台任務正在進行中,本任務將在後台任務全部完成後自動開始

task.empty.failed=暫無失敗的任務
task.empty.running=暫無正在執行的任務
task.failed=失敗
task.failed.no_exception=任務失敗(無異常資訊)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.failed.no_exception=任務失敗(無異常資訊)
task.failed.no_exception=任務失敗 (無異常資訊)

Comment on lines +1300 to +1301
task.detail.modpack_export=匯出整合包 - %s
task.detail.modpack_install=安裝整合包
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.detail.modpack_export=匯出整合包 - %s
task.detail.modpack_install=安裝整合包
task.detail.modpack_export=匯出模組包 - %s
task.detail.modpack_install=安裝模組包

task.empty.failed=暂无失败的任务
task.empty.running=暂无正在运行的任务
task.failed=失败
task.failed.no_exception=任务失败(无异常信息)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
task.failed.no_exception=任务失败(无异常信息)
task.failed.no_exception=任务失败 (无异常信息)

@Minecraft269
Copy link
Copy Markdown

@NoClassFoundError 有进展了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants