# Fix panic when opening settings in zed2 \(\#3375\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6cd0bcc5783f4096480a149fa649057ed93c05fd

Requested commit: 6cd0bcc5783f4096480a149fa649057ed93c05fd

Commit: 6cd0bcc5783f4096480a149fa649057ed93c05fd

Tree: 8ceefdc308a5d42f0e5b8e8fafcee653b7acbe04

Author: Marshall Bowers

Committer: GitHub

## Message

```
Fix panic when opening settings in zed2 (#3375)

This PR fixes a panic that occurs when opening the settings in zed2.

We store the `ThemeRegistry` as a global without wrapping it in an
`Arc`, so we need to retrieve it the same way.

Release Notes:

- N/A
```

## Parents

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

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