Skip to content

feat: 切换实例隔离设置后自动刷新其他子页面#5638

Open
CiiLu wants to merge 2 commits intoHMCL-dev:mainfrom
CiiLu:aaaaa
Open

feat: 切换实例隔离设置后自动刷新其他子页面#5638
CiiLu wants to merge 2 commits intoHMCL-dev:mainfrom
CiiLu:aaaaa

Conversation

@CiiLu
Copy link
Contributor

@CiiLu CiiLu commented Feb 24, 2026

No description provided.

return;

Platform.runLater(() -> memoryStatusProperty.set(status));
FXUtils.runInFX(() -> memoryStatusProperty.set(status));
Copy link
Member

Choose a reason for hiding this comment

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

为什么要这样改?这段代码绝对不可能在 JavaFX 线程上运行,用 FXUtils.runInFX 有什么意义?这里就是该用 Platform.runLater

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.

2 participants