# Toggle tasks modal in task::Rerun, when no tasks have been scheduled \(\#11059\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/1af1a9e8b330bced049d82aad39500353062974f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 1af1a9e8b330bced049d82aad39500353062974f

Requested commit: 1af1a9e8b330bced049d82aad39500353062974f

Commit: 1af1a9e8b330bced049d82aad39500353062974f

Tree: 220c3178f7fc76c0ee9e616737310c9a5be82928

Author: Tim Masliuchenko

Committer: GitHub

## Message

```
Toggle tasks modal in task::Rerun, when no tasks have been scheduled (#11059)

Currently, when no tasks have been scheduled, the `task::Rerun` action
does nothing.
This PR adds a fallback, so when no tasks have been scheduled so far the
`task::Rerun` action toggles the tasks modal

https://github.com/zed-industries/zed/assets/471335/72f7a71e-cfa8-49db-a295-fb05b2e7c905

Release Notes:

- Improved the `task::Rerun` action to toggle the tasks modal when no
tasks have been scheduled so far


```

## Parents

- [8006f6951339992187c277c18de9f0a32456524a](https://git.cafe/gitcafe/zed/commit/8006f6951339992187c277c18de9f0a32456524a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/1af1a9e8b330bced049d82aad39500353062974f?format=markdown)
