Skip to content

🐞 Hide Utility Area Command tied to Inspector instead of Utility Area #1696

Closed
@knotbin

Description

@knotbin

Description

In ViewCommands, the Show/Hide state of Hide Utility Area button text is tied to the inspector instead of the utility area.
Button("\(inspectorCollapsed ? "Show" : "Hide") Utility Area")

To Reproduce

  1. Click View in the Menu Bar
  2. Click Hide Inspector
  3. Exit the window (required because of 🐞 Menu Bar Items Not Updating #1684)
  4. Reenter the window
  5. Click on View in menu bar
  6. Notice that the 'Hide Utility Area' button now says 'Show Utility Area'
  7. Click 'Show Utility Area'
  8. Exit and reenter the window
  9. Click on View in menu bar
  10. Notice the button still says 'Show Utility Area'

Expected Behavior

Hide Utility Area changes to Show Utility Area only when the Utility Area's state changes, not the inspector

Version Information

CodeEdit: 0.1.0-dev (38)
macOS: 14.4.1

Additional Context

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    🏁 Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions