Fix panic double clicking on debugger resize handle (#30569)

Closes #ISSUE

Co-Authored-By: Cole <cole@zed.dev>

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-05-13 09:55:54 +02:00 committed by GitHub
parent fff349a644
commit 32c7fcd78c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1119,7 +1119,7 @@ impl Panel for DebugPanel {
}
fn set_size(&mut self, size: Option<Pixels>, _window: &mut Window, _cx: &mut Context<Self>) {
self.size = size.unwrap();
self.size = size.unwrap_or(px(300.));
}
fn remote_id() -> Option<proto::PanelId> {