Skip to content

Commit

Permalink
Check windows based on hidden status, not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvanderlinde committed May 28, 2024
1 parent 52c493c commit 4c0435a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/rptools/maptool/client/AppActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -3339,7 +3339,7 @@ public ToggleWindowAction(MTFrame mtFrame) {

@Override
public boolean isSelected() {
return MapTool.getFrame().getFrame(mtFrame).isShowing();
return !MapTool.getFrame().getFrame(mtFrame).isHidden();
}

@Override
Expand All @@ -3350,7 +3350,7 @@ public boolean isAvailable() {
@Override
protected void executeAction() {
DockableFrame frame = MapTool.getFrame().getFrame(mtFrame);
if (frame.isShowing()) {
if (!frame.isHidden()) {
MapTool.getFrame().getDockingManager().hideFrame(mtFrame.name());
} else {
MapTool.getFrame().getDockingManager().showFrame(mtFrame.name());
Expand Down

0 comments on commit 4c0435a

Please sign in to comment.