# git_ui: Dismiss pickers only on active window \(\#41320\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 24c1617e74abcc94ddbd6a667b13a7f87a974bb3

Requested commit: 24c1617e74abcc94ddbd6a667b13a7f87a974bb3

Commit: 24c1617e74abcc94ddbd6a667b13a7f87a974bb3

Tree: 1dcab11578a61565ccb86d740600f450b1958387

Author: Ben Heimberg

Committer: GitHub

## Message

```
git_ui: Dismiss pickers only on active window (#41320)

Small QOL improvement for branch picker to only dismiss when focus lost
in active window.
This can benefit those who need to switch windows mid branch creation to
fetch correct jira ticket number or etc.

Added `window.is_active_window()` guard in `picker.rs` -> `cancel` event

Release Notes:
- (Let's Git Together) Fixed a behavior where pickers would
automatically close upon the window becoming inactive.
```

## Parents

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

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