Skip to content

[Feature] 截图管理#6096

Open
ToobLac wants to merge 25 commits into
HMCL-dev:mainfrom
ToobLac:screenshot
Open

[Feature] 截图管理#6096
ToobLac wants to merge 25 commits into
HMCL-dev:mainfrom
ToobLac:screenshot

Conversation

@ToobLac

@ToobLac ToobLac commented May 16, 2026

Copy link
Copy Markdown
Contributor

Resolves #5535

  • 截图预览与删除
  • 多选删除
  • 清空
  • 导航到文件夹
  • 复制到剪贴板
  • 按日期批量选中

@Minecraft269

Copy link
Copy Markdown

/gemini review

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

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.

Code Review

This pull request introduces a new screenshots management page (ScreenshotsPage) for Minecraft versions, allowing users to view, copy, delete, and filter screenshots by date. It also integrates JFXDatePicker and JFXDatePickerSkin to support date range selection, along with corresponding CSS styles, localization properties, and file size formatting utilities. Feedback on the changes highlights several critical improvements: performing blocking file I/O and large image loading asynchronously on background threads to avoid freezing the JavaFX UI, adding defensive null checks to prevent NullPointerExceptions, ensuring thread safety for cross-thread image fields using volatile, respecting user-configured locales during date formatting, and protecting against an ArrayIndexOutOfBoundsException when removing listeners.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread HMCL/src/main/java/com/jfoenix/skins/JFXDatePickerContent.java Outdated
Comment thread HMCL/src/main/java/com/jfoenix/skins/JFXDatePickerSkin.java Outdated
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.

[Feature] 游戏截图管理

3 participants