CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

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

Open knotbin opened this issue 1 year ago • 0 comments

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 #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

knotbin avatar Apr 30 '24 22:04 knotbin