Open a new window when activating Zed from the dock w/ no windows open

This commit is contained in:
Max Brunsfeld 2023-03-29 17:24:44 -07:00
parent 7601e7902a
commit b5f762ab25
5 changed files with 49 additions and 17 deletions

View file

@ -105,7 +105,8 @@ fn main() {
.map_err(|_| anyhow!("no listener for open urls requests"))
.log_err();
}
});
})
.on_reopen(move |cx| cx.dispatch_global_action(NewFile));
app.run(move |cx| {
cx.set_global(*RELEASE_CHANNEL);