# gpui: Add to support check state to MenuItem \(\#39876\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/29cc3d0e18b9dd5386e16299e132593e6e72cdc2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 29cc3d0e18b9dd5386e16299e132593e6e72cdc2

Requested commit: 29cc3d0e18b9dd5386e16299e132593e6e72cdc2

Commit: 29cc3d0e18b9dd5386e16299e132593e6e72cdc2

Tree: d9873d60fcf7070d71e7fdeaa22ef8497ea6f159

Author: Jason Lee

Committer: GitHub

## Message

```
gpui: Add to support check state to MenuItem (#39876)

Release Notes:

- N/A

---


https://github.com/user-attachments/assets/d46b77ae-88ba-43da-93ad-3656a7fecaf9

The system menu is only support for macOS, so here just modify the macOS
platform special code.

The Windows, Linux used `ApplicationMenu`, I have already added
`checked` option to Zed's ContextMenu.

Then later when this PR merged, we can improve "View" menu to show check
state to panels (Project Panel, Outline Panel, ...).
```

## Parents

- [760747f127d44d682467eef271a68b24a92e493b](https://git.cafe/gitcafe/zed/commit/760747f127d44d682467eef271a68b24a92e493b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/29cc3d0e18b9dd5386e16299e132593e6e72cdc2?format=markdown)
