# settings ui: Fix panic that occurred when changing the selected settings file \(\#39293\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3314de81755d7ef949007f6b804f4496092b0cc8

Requested commit: 3314de81755d7ef949007f6b804f4496092b0cc8

Commit: 3314de81755d7ef949007f6b804f4496092b0cc8

Tree: 5175740f3fd118080ff38a33f33bc90526f9c8a3

Author: Anthony Eid

Committer: GitHub

## Message

```
settings ui: Fix panic that occurred when changing the selected settings file (#39293)

The panic happened because navbar index wasn't updated when changing
files.

Release Notes:

- N/A

Co-authored-by: dino <dinojoaocosta@gmail.com>
```

## Parents

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

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