Skip to content

git_ui: Dismiss modal when viewing stash#48491

Merged
dinocosta merged 2 commits intomainfrom
fix-view-stash-dismiss
Feb 9, 2026
Merged

git_ui: Dismiss modal when viewing stash#48491
dinocosta merged 2 commits intomainfrom
fix-view-stash-dismiss

Conversation

@dinocosta
Copy link
Member

Ensure that git_ui::stash_picker::StashList.handle_show_toast emits a DismissEvent so that, when the user confirms they wish to view a stash entry, the modal is actually dismissed and does not block the user's view.

Release Notes:

  • Fixed issue where viewing a stash entry would not dismiss the modal

Update `git_ui::stash_picker::StashList.handle_show_stash` so as to emit
a `DismissEvent` at the end, to ensure that the stash picker is actually
dismissed and users can view the stash without the modal staying on the
screen.

This commit also introduces a test for this change, but unsure if it's
the best approach as it seems to be the first test for
`git_ui::stash_picker::StashList`.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 5, 2026
@zelenenka zelenenka added the staff Pull requests authored by a current member of Zed staff label Feb 6, 2026
@dinocosta dinocosta merged commit 9120c96 into main Feb 9, 2026
35 checks passed
@dinocosta dinocosta deleted the fix-view-stash-dismiss branch February 9, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants