gpui: Fix invalid unwrap in windows window creation (#42426)

Fixes ZED-34M

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-11-11 10:55:19 +00:00
committed by GitHub
parent 97100ce52f
commit 1c4bb60209
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -453,8 +453,9 @@ impl WindowsWindow {
// Failure to create a `WindowsWindowState` can cause window creation to fail,
// so check the inner result first.
let this = context.inner.take().unwrap()?;
let this = context.inner.take().transpose()?;
let hwnd = creation_result?;
let this = this.unwrap();
register_drag_drop(&this)?;
configure_dwm_dark_mode(hwnd, appearance);