Skip to content

fix: 日志窗口 Ctrl+C 复制 toast 在主窗口显示#5581

Merged
Glavo merged 1 commit intoHMCL-dev:mainfrom
CiiLu:h
Feb 20, 2026
Merged

fix: 日志窗口 Ctrl+C 复制 toast 在主窗口显示#5581
Glavo merged 1 commit intoHMCL-dev:mainfrom
CiiLu:h

Conversation

@CiiLu
Copy link
Contributor

@CiiLu CiiLu commented Feb 20, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the issue where the toast notification for copying text with Ctrl+C in the log window was displayed in the main window instead of the log window itself.

Changes:

  • Modified import statements to consolidate JFoenix controls imports and expand util imports
  • Added a local JFXSnackbar instance to LogWindowSkin for displaying toasts within the log window
  • Updated the Ctrl+C copy handler to suppress the default main window toast and fire a snackbar event locally

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Glavo Glavo merged commit 53e90ea into HMCL-dev:main Feb 20, 2026
6 checks passed
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

Comments