Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always use MainWindow#getApplicationFrame #969

Conversation

miurahr
Copy link
Member

@miurahr miurahr commented Feb 28, 2024

fix MainWindowMenuHandler to use MainWindow#getApplicationFrame to get Swing JFrame component from MainWindow object.

Pull request type

  • Other (describe below)
    refactor

Which ticket is resolved?

Dev-ML
https://sourceforge.net/p/omegat/mailman/message/58742917/

What does this PR change?

  • do not assume MainWindow class as JFrame object
  • Use MainWindow#getApplicationFrame when expect parent frame
  • The enforcement helps an internal change of MainWindow class

Other information

Spin out from #964 topic branch

- do not assume MainWindow class as JFrame object
- Use MainWindow#getApplicationFrame when expect parent frame
- The enforcement helps an internal change of MainWindow class

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
@miurahr miurahr marked this pull request as ready for review February 29, 2024 00:08
@brandelune
Copy link

Is there anything specific that you want us to check, besides for knowing whether the code builds/runs?

Copy link
Member

@damien-rembert damien-rembert left a comment

Choose a reason for hiding this comment

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

Looks good to me :)

@miurahr miurahr merged commit 7822acd into master Mar 1, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants