# git_ui: When no changes, disable stage/unstage toolbar buttons \(\#39909\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 59b87d5c71a51d2b981ba86f694212a748b33120

Requested commit: 59b87d5c71a51d2b981ba86f694212a748b33120

Commit: 59b87d5c71a51d2b981ba86f694212a748b33120

Tree: 6e9e5090cf067d643ab1efd682b7e0c5f9c4f2b7

Author: Bartosz Kaszubowski

Committer: GitHub

## Message

```
git_ui: When no changes, disable stage/unstage toolbar buttons (#39909)

# Why

While working on recent PR I have spotted that "Stage" and "Unstage"
buttons in "Uncommited Changes" toolbar are always active, even when
there is no changes made locally.

<img width="1628" height="656" alt="Screenshot 2025-10-10 at 00 49 06"
src="https://github.com/user-attachments/assets/6bdb9ded-17c8-4f84-8649-b297162c1992"
/>

# How

Re-use already existing button states for managing the disabled state of
"Uncommited Changes" toolbar buttons when changeset is empty.

Release Notes:

- Added disabled state for "Uncommited Changes" toolbar buttons when
there are no changes present

# Preview

<img width="1728" height="772" alt="Screenshot 2025-10-10 at 08 40 14"
src="https://github.com/user-attachments/assets/ff41d852-974e-4ce1-9163-ecd30e17d5d8"
/>
```

## Parents

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

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