feat(setup): 添加“停止使用 PCL CE”功能 - #3433
Conversation
审阅者指南在设置杂项页中添加一个“停止使用 PCL CE”的流程,引导用户经过一系列确认对话框,删除与 PCL CE 相关的数据和配置(可选地删除 Minecraft 资源文件夹中的内容),将任何错误展示给用户,然后关闭应用程序,同时包含必要的 IoC 和本地化接线以及 UI 挂钩。 新“停止使用 PCL CE”设置流程的时序图sequenceDiagram
actor User
participant PageSetupLauncherMisc
participant ModMain
participant StopUsingPClCeCore
participant Lifecycle
User ->> PageSetupLauncherMisc: BtnSystemStopUsingPclCe_Click
PageSetupLauncherMisc ->> ModMain: MyMsgBox
alt [user chooses continue or continue_and_remove]
PageSetupLauncherMisc ->> ModMain: MyMsgBox
alt [user confirms final warning]
PageSetupLauncherMisc ->> StopUsingPClCeCore: StopUsingPClCeCore(removeMcResources)
StopUsingPClCeCore --> PageSetupLauncherMisc: exceptions
alt [exceptions.Count > 0]
PageSetupLauncherMisc ->> ModMain: MyMsgBox
else [no exceptions]
PageSetupLauncherMisc ->> ModMain: MyMsgBox
end
PageSetupLauncherMisc ->> Lifecycle: Shutdown
else [user cancels]
PageSetupLauncherMisc --> User: [no changes]
end
else [user cancels initial dialog]
PageSetupLauncherMisc --> User: [no changes]
end
删除 PCL CE 数据和配置的流程图flowchart TD
A[Start StopUsingPClCeCore removeMcResources] --> B[Delete PCL CE data folders via Delete]
B --> C{removeMcResources and States.Game.Folders not empty}
C -->|Yes| D[For each game folder: Delete PCL.ini via Delete]
D --> E[Delete version config.v1.yml files via Delete]
C -->|No| F[Skip MC resource deletion]
E --> G[Return exceptions]
F --> G[Return exceptions]
文件级变更
提示和命令与 Sourcery 交互
自定义你的体验访问你的 控制面板 以:
获取帮助Original review guide in EnglishReviewer's GuideAdds a "Stop using PCL CE" flow in the setup misc page that guides the user through confirmation dialogs, deletes PCL CE-related data and configuration (optionally in Minecraft resource folders), surfaces any errors to the user, and then shuts down the application, along with the necessary IoC and localization wiring and UI hook-up. Sequence diagram for the new "Stop using PCL CE" setup flowsequenceDiagram
actor User
participant PageSetupLauncherMisc
participant ModMain
participant StopUsingPClCeCore
participant Lifecycle
User ->> PageSetupLauncherMisc: BtnSystemStopUsingPclCe_Click
PageSetupLauncherMisc ->> ModMain: MyMsgBox
alt [user chooses continue or continue_and_remove]
PageSetupLauncherMisc ->> ModMain: MyMsgBox
alt [user confirms final warning]
PageSetupLauncherMisc ->> StopUsingPClCeCore: StopUsingPClCeCore(removeMcResources)
StopUsingPClCeCore --> PageSetupLauncherMisc: exceptions
alt [exceptions.Count > 0]
PageSetupLauncherMisc ->> ModMain: MyMsgBox
else [no exceptions]
PageSetupLauncherMisc ->> ModMain: MyMsgBox
end
PageSetupLauncherMisc ->> Lifecycle: Shutdown
else [user cancels]
PageSetupLauncherMisc --> User: [no changes]
end
else [user cancels initial dialog]
PageSetupLauncherMisc --> User: [no changes]
end
Flow diagram for deleting PCL CE data and configurationflowchart TD
A[Start StopUsingPClCeCore removeMcResources] --> B[Delete PCL CE data folders via Delete]
B --> C{removeMcResources and States.Game.Folders not empty}
C -->|Yes| D[For each game folder: Delete PCL.ini via Delete]
D --> E[Delete version config.v1.yml files via Delete]
C -->|No| F[Skip MC resource deletion]
E --> G[Return exceptions]
F --> G[Return exceptions]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
嗨——我已经审查了你的更改,看起来非常棒!
帮我变得更有用!请在每条评论上点击 👍 或 👎,我会利用这些反馈来改进为你提供的审查。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f825373581
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f746dd76f4
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 37a70e9467
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 56a62f27fd
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Co-authored-by: ChilovenBustiangle <116699482+Chiloven945@users.noreply.github.com>
Co-authored-by: ChilovenBustiangle <116699482+Chiloven945@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 83e72bcc3b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46bb54943b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 20c43e1dc6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1c97622ebf
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Summary by Sourcery
添加一个设置选项,用于停止使用 PCL CE 并清理相关数据,在完成后退出应用程序。
新功能:
增强改进:
Original summary in English
Summary by Sourcery
Add a setup option to stop using PCL CE and clean up related data, then exit the application after completion.
New Features:
Enhancements: