添加应用重新加载功能 - #4513
Closed
rootwhois wants to merge 7 commits into
Closed
Conversation
Member
|
看起来好像和 #4468 部分重复 |
Contributor
Author
|
本pr的重载功能逻辑:当需要重启生效的配置被修改(目前看到的有关闭动画、抗锯齿、语言切换选项)的时候,在标题栏右侧出现重载按钮,点击进行重载。后续有类似的功能需要实现,添加Property对应的Listener即可。 config().localizationProperty().addListener(restartButtonListener);
|
Closed
3gf8jv4dv
reviewed
Oct 3, 2025
3gf8jv4dv
left a comment
Contributor
There was a problem hiding this comment.
我测试了一下。
- 语言重载目前没看到问题。
- 抗锯齿重载我目前无法给出结论。
- 关闭动画重载没有效果。
Glavo
reviewed
Oct 19, 2025
Glavo
left a comment
Member
There was a problem hiding this comment.
我很怀疑这个“重新加载”功能是否有意义。
需要重新启动才能生效的选项大部分是因为必须在 JavaFX 初始化之前才能应用设置,运行时重新加载不会有任何效果。
| private Controllers() { | ||
| } | ||
|
|
||
| private static void setupFontAntialiasing() { |
Member
|
怀疑此功能的意义。 |
Member
|
考虑到本 PR 很多时候看起来是无效的,我先关了本 PR。 |
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.
No description provided.