Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop): compile activates_dock only on macOS

Richie McIlroy18256310c5ce
diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rs
index 0be75dc8d..1f070e1e9 100644
--- a/apps/desktop/src-tauri/src/windows.rs
+++ b/apps/desktop/src-tauri/src/windows.rs
@@ -522,6 +522,7 @@ impl CapWindowId {
}
}
+ #[cfg(target_os = "macos")]
pub fn activates_dock(&self) -> bool {
matches!(
self,