Change open paths to replace the existing window if dispatched from a window
co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
ab4b3293d1
commit
904993dfc9
4 changed files with 163 additions and 90 deletions
|
@ -48,7 +48,7 @@ pub fn new_journal_entry(app_state: Arc<AppState>, cx: &mut MutableAppContext) {
|
|||
async move {
|
||||
let (journal_dir, entry_path) = create_entry.await?;
|
||||
let (workspace, _) = cx
|
||||
.update(|cx| workspace::open_paths(&[journal_dir], &app_state, cx))
|
||||
.update(|cx| workspace::open_paths(&[journal_dir], &app_state, None, cx))
|
||||
.await;
|
||||
|
||||
let opened = workspace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue