Closed
Conversation
added 2 commits
August 2, 2026 12:26
当用户选择"跟随系统设置"时,不再调用NSApplication.setAppearance() 锁定主题,让JavaFX的colorScheme能自然跟随系统切换。 - 新增MacOSNativeUtils.resetAppearance()重置为nil - Themes.applyNativeDarkMode()仅在非auto模式时调用setAppearance - 监听themeBrightnessModeProperty变化动态切换auto/显式模式 fixes #6526
Member
|
拿 AI 提交 PR 的时候能不能看看你自己提交了什么东西? 你把其他 PR(#6555)的修改拉进自己的 PR 里装作是自己的东西,然后 PR 标题、简介和实际提交的代码牛头不对马嘴。 考虑到提交该 PR 的账号是昨天刚刚注册的账号,又用 AI 打开了多个完全牛头不对马嘴的垃圾 PR,目测人类含量 0%。为了避免风险,我决定屏蔽此账号,如果有异议可以对我发起申诉。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
1. JFXPopup 潜在空指针异常
问题:
hide()方法中直接((JFXPopupSkin) getSkin()).init()可能抛出 NPE,因为getSkin()在 popup 从未显示时可能返回 null。同样的问题也存在于show()方法中。修复: 使用
instanceof模式匹配安全转换,避免 ClassCastException 和 NullPointerException。2. ModManager 文件操作失败时状态回滚
问题: 当模组文件被其他进程占用时,
disableMod()/enableMod()抛出 IOException,但 UI 属性已更改,导致显示与实际状态不一致。修复: 捕获 IOException 后通过
Platform.runLater(() -> set(!newValue))回滚属性值。3. 自动安装页面不兼容提示截断
问题: InstallerItem 的 statusLabel 没有设置文本换行,长提示文字被截断。
修复: 添加
setWrapText(true)和setMaxWidth(Double.MAX_VALUE)。编译通过,全部测试通过(仅含预先存在的 flaky test 失败)。