Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Close camera window when opening editor windows

Richie McIlroyadf04288fa4b
diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rs
index a88dc4bc3..0e817aa10 100644
--- a/apps/desktop/src-tauri/src/windows.rs
+++ b/apps/desktop/src-tauri/src/windows.rs
@@ -444,6 +444,9 @@ impl ShowCapWindow {
if let Some(main) = CapWindowId::Main.get(app) {
let _ = main.close();
};
+ if let Some(camera) = CapWindowId::Camera.get(app) {
+ let _ = camera.close();
+ };
self.window_builder(app, "/editor")
.maximizable(true)
@@ -455,6 +458,9 @@ impl ShowCapWindow {
if let Some(main) = CapWindowId::Main.get(app) {
let _ = main.close();
};
+ if let Some(camera) = CapWindowId::Camera.get(app) {
+ let _ = camera.close();
+ };
self.window_builder(app, "/screenshot-editor")
.maximizable(true)