Fix dispatching global actions from a window (#9502)
Fixes https://github.com/zed-industries/zed/issues/9313 Release Notes: - Fixed a regression that caused global actions to stop working when invoked from a window (preview-only) ([#9313](https://github.com/zed-industries/zed/issues/9313)). Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
4e17ce3b37
commit
3d08e20c72
2 changed files with 55 additions and 7 deletions
|
@ -1155,7 +1155,7 @@ impl AppContext {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn dispatch_global_action(&mut self, action: &dyn Action) {
|
||||
fn dispatch_global_action(&mut self, action: &dyn Action) {
|
||||
self.propagate_event = true;
|
||||
|
||||
if let Some(mut global_listeners) = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue