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

Check windows based on hidden status, not showing #4804

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented May 28, 2024

Identify the Bug or Feature request

Fixes #1030

Description of the Change

In the Window menu, windows now have a check whenever they are open. The old check is based on isShowing(), an AWT property that checks whether the component happens to be visible on screen (e.g., not hidden behind anything else). The new check is based on isHidden(), a JIDE concept that checks whether a frame is hidden by the docking manager's hideFrame().

This also means windows can be closed from the Window menu even if they aren't the active tab.

A similar use of isShowing() for Tool > Chat seems to be intentional so I've left it in place.

Possible Drawbacks

None.

Documentation Notes

N/A

Release Notes

  • Fixed a bug where windows would not be checked in the Window menu if not the active window in a tab group.

This change is Reviewable

@kwvanderlinde kwvanderlinde self-assigned this May 28, 2024
@cwisniew cwisniew added this pull request to the merge queue May 30, 2024
Merged via the queue into RPTools:develop with commit e85a50a May 30, 2024
4 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/1030-check-windows-when-docked branch June 28, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

With MapTool default layout Draw Explorer is open but not checked in Window menu
2 participants