Skip to content

设备代码流在完成授权后隐藏二维码#6087

Open
CiiLu wants to merge 5 commits into
HMCL-dev:mainfrom
CiiLu:mmsssssss
Open

设备代码流在完成授权后隐藏二维码#6087
CiiLu wants to merge 5 commits into
HMCL-dev:mainfrom
CiiLu:mmsssssss

Conversation

@CiiLu
Copy link
Copy Markdown
Contributor

@CiiLu CiiLu commented May 13, 2026

No description provided.

Comment thread HMCL/src/main/resources/assets/lang/I18N.properties
Comment thread HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties Outdated
Comment thread HMCL/src/main/resources/assets/lang/I18N_zh.properties Outdated
@Glavo
Copy link
Copy Markdown
Member

Glavo commented May 13, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request enhances the Microsoft device login flow by introducing a new 'DeviceLoginCompleted' state and event. This ensures that users are notified once the authorization step is finished while the launcher completes the remaining login tasks. The changes involve updates to the OAuth callback interface, the addition of a specific event class, and UI logic to display a completion hint. Review feedback correctly identified a grammatical error in the English localization and character inconsistencies in the Traditional Chinese translation, both of which included specific code suggestions for correction.

Comment thread HMCL/src/main/resources/assets/lang/I18N.properties
Comment thread HMCL/src/main/resources/assets/lang/I18N_zh.properties Outdated
Co-authored-by: 3gf8jv4dv <3gf8jv4dv@gmail.com>
Comment thread HMCL/src/main/resources/assets/lang/I18N_zh.properties Outdated
@Glavo
Copy link
Copy Markdown
Member

Glavo commented May 15, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a completion event to the OAuth device login flow, enabling the UI to display a message once authorization is finished. It includes updates to the OAuth callback interface, event management, and localized strings. Reviewer feedback highlights the need for explicit error handling in the polling loop to avoid null tokens and suggests a grammatical fix for the English translation.

Comment thread HMCLCore/src/main/java/org/jackhuang/hmcl/auth/OAuth.java
Comment thread HMCL/src/main/resources/assets/lang/I18N.properties
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.

3 participants