Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(desktop-gpui): close to the tray and release the camera from the Windows X
LukeParkerDevc93967ce5950
diff --git a/apps/desktop-gpui/src/main_window.rs b/apps/desktop-gpui/src/main_window.rsindex be5f5809e..938ba9372 100644--- a/apps/desktop-gpui/src/main_window.rs+++ b/apps/desktop-gpui/src/main_window.rs@@ -782,7 +782,7 @@ impl MainWindow {) -> Self {crate::theme::bind_window(window, cx);window.on_window_should_close(cx, |_, cx| {- // The custom Windows X minimizes; native close requests must still quit.+ // The custom Windows X hides to the tray; native close requests must still quit.#[cfg(target_os = "windows")]cx.defer(crate::menus::quit);#[cfg(not(target_os = "windows"))]@@ -2890,8 +2890,11 @@ impl MainWindow {.on_click(|_, window, _| window.minimize_window()),).child(- button("caption-close", "icons/caption-close-windows.svg", 10.)- .on_click(|_, window, _| window.minimize_window()),+ button("caption-close", "icons/caption-close-windows.svg", 10.).on_click(+ cx.listener(|_, _, _, cx| {+ cx.defer(app_windows::request_close_main);+ }),+ ),)}