# Store starts open state of outline panel \(\#13601\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 228202a469f3d84880b9a08c11884678cc4a8689

Requested commit: 228202a469f3d84880b9a08c11884678cc4a8689

Commit: 228202a469f3d84880b9a08c11884678cc4a8689

Tree: 9b4be5a1777171fbc668937fa91a2f814f123224

Author: Yongkang Chen

Committer: GitHub

## Message

```
Store starts open state of outline panel (#13601)

- Fixed issue where outline panel remains open despite being closed
before window close.

Before the release of Outline Panel feature, everything works fine. But
after that, the outline panel keeps open. It's very annoy that I only
want to edit a simple file. Event I close it before I close the window.
The active state of this panel didn't stored.

### Description:
Before the introduction of the Outline Panel feature, the application
behaved as expected. However, with the addition of the Outline Panel, an
issue arose where the panel would persistently remain open. This
behavior was observed even when manually closing the panel before
closing the application window. The problem stemmed from the inactive
state of the panel not being stored properly. This fix addresses the
issue by ensuring that the panel's active state is correctly stored and
retrieved, thereby improving user experience and preventing unnecessary
persistence of the panel's visibility.

### Screen Records

#### Before Release of Outline Panel


https://github.com/zed-industries/zed/assets/704762/2a222c70-c6d7-4472-9f27-7868d1786a5f


#### After Release of Outline Panel


https://github.com/zed-industries/zed/assets/704762/69c16a5d-beed-4d4a-8341-83c53f6a6713


#### After Fixing This Issue


https://github.com/zed-industries/zed/assets/704762/f51c5df7-54e3-4a62-ac54-b5d12cfe69d1

### Release Notes:

- Persist outline panel open state to avoid opening it on Zed startup
```

## Parents

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

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