git_ui: Dismiss pickers only on active window#41320
git_ui: Dismiss pickers only on active window#41320cole-miller merged 4 commits intozed-industries:mainfrom
Conversation
|
We require contributors to sign our Contributor License Agreement, and we don't have @v1narth on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
@cla-bot check |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
I think it may be better to also introduce this to other places like |
|
Thanks! I think we can enable this for all pickers in a clean way by adding a |
|
@cole-miller thx for the guide, i've implemented your suggestion, seems like its working just fine |
|
Sorry, I think my previous post was unclear--I think we should add this check inside the two blur handlers in picker.rs, so these lines: zed/crates/picker/src/picker.rs Line 610 in f1c2afd zed/crates/picker/src/picker.rs Line 622 in f1c2afd Maybe a bit of a nitpick but I think we should ensure that this behavior is only applied for blue handlers. |
|
@cole-miller done |
|
Thank you! |
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.
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.
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 inpicker.rs->canceleventRelease Notes: