When opening projects, only reuse the current window if it is empty
This commit is contained in:
parent
44d26b69ae
commit
7cc868bc8c
2 changed files with 19 additions and 7 deletions
|
@ -167,7 +167,7 @@ impl PickerDelegate for RecentProjectsView {
|
|||
fn confirm(&mut self, cx: &mut ViewContext<Self>) {
|
||||
if let Some(selected_match) = &self.matches.get(self.selected_index()) {
|
||||
let workspace_location = &self.workspace_locations[selected_match.candidate_id];
|
||||
cx.dispatch_global_action(OpenPaths {
|
||||
cx.dispatch_action(OpenPaths {
|
||||
paths: workspace_location.paths().as_ref().clone(),
|
||||
});
|
||||
cx.emit(Event::Dismissed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue