ZIm/crates/zed
Thorsten Ball 140d70289e
Avoid panic by only restoring workspace if UI has launched (#18386)
This should fix the `unregistered setting type
workspace::workspace_settings::WorkspaceSettings` panic that came from
inside `restorable_workspace_locations`.

We tracked it down to a possible scenario (we can't recreate it though)
in which `app.on_reopen` is called before the app has finished
launching.

In any case, this check makes sense, because we only want to restore a
workspace in case the whole app has launched with a UI.

Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>
2024-09-26 12:26:58 +02:00
..
contents Fix bundle script 2023-11-17 17:44:41 -08:00
resources dev build: Change color of icons (#17486) 2024-09-06 11:47:19 +02:00
src Avoid panic by only restoring workspace if UI has launched (#18386) 2024-09-26 12:26:58 +02:00
build.rs windows: Fix executable display name (#13091) 2024-06-17 13:02:09 -06:00
Cargo.toml Move adapters to remote (#18359) 2024-09-25 15:29:04 -07:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
RELEASE_CHANNEL Put release channel back to dev 2023-11-17 14:31:49 -08:00