Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop-gpui): build the onboarding and permission guide changes on Windows

Richie McIlroyf524ee4e2c75
diff --git a/apps/desktop-gpui/src/onboarding_window.rs b/apps/desktop-gpui/src/onboarding_window.rs
index 5f2aff329..cdee4fea2 100644
--- a/apps/desktop-gpui/src/onboarding_window.rs
+++ b/apps/desktop-gpui/src/onboarding_window.rs
@@ -16,6 +16,9 @@ use crate::{
theme::Theme,
};
+#[cfg(target_os = "windows")]
+use crate::ui;
+
mod stage;
pub use stage::Paper;
diff --git a/apps/desktop-gpui/src/platform/windows.rs b/apps/desktop-gpui/src/platform/windows.rs
index 58fc584d7..60ef53662 100644
--- a/apps/desktop-gpui/src/platform/windows.rs
+++ b/apps/desktop-gpui/src/platform/windows.rs
@@ -726,3 +726,19 @@ mod tests {
assert!(!overlap_is_visible(to_rect(0., 0., 0., 100.), monitor));
}
}
+
+pub fn begin_file_drag(_window: &Window, _path: &std::path::Path) -> bool {
+ false
+}
+
+pub fn system_settings_frame() -> Option<(f64, f64, f64, f64)> {
+ None
+}
+
+pub fn system_settings_frontmost() -> bool {
+ false
+}
+
+pub fn window_is_closable(_window: &Window) -> bool {
+ false
+}