Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Update windows.rs

Ilya2121ff8f452c
diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rs
index 6e5b34b3b..25b512581 100644
--- a/apps/desktop/src-tauri/src/windows.rs
+++ b/apps/desktop/src-tauri/src/windows.rs
@@ -408,7 +408,10 @@ pub fn set_theme(window: tauri::Window, theme: AppTheme) {
});
#[cfg(target_os = "macos")]
- position_traffic_lights(window, None);
+ match CapWindowId::from_str(window.label()) {
+ Ok(win) if win.traffic_lights_position().is_some() => position_traffic_lights(window, None),
+ Ok(_) | Err(_) => {}
+ }
}
#[tauri::command]