# Disable close clean menu item when all are dirty \(\#31859\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d3bc561f26e8077a1de8ffb98b7d9e012133980c

Requested commit: d3bc561f26e8077a1de8ffb98b7d9e012133980c

Commit: d3bc561f26e8077a1de8ffb98b7d9e012133980c

Tree: 3d6c588ba9f63f89f1f64526490d60fef1141765

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Disable close clean menu item when all are dirty (#31859)

This PR disables the "Close Clean" tab context menu action if all items
are dirty.

<img width="595" alt="SCR-20250601-kaev"
src="https://github.com/user-attachments/assets/add30762-b483-4701-9053-141d2dfe9b05"
/>

<img width="573" alt="SCR-20250601-kahl"
src="https://github.com/user-attachments/assets/24f260e4-01d6-48d6-a6f4-a13ae59c246e"
/>

Also did a bit more general refactoring.

Release Notes:

- N/A
```

## Parents

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

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