Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Fix move of borrowed

Ilyad59b8ff138c4
diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs
index 2fe381799..0443081c8 100644
--- a/apps/desktop/src-tauri/src/main.rs
+++ b/apps/desktop/src-tauri/src/main.rs
@@ -209,9 +209,10 @@ fn main() {
.make_transparent()
.expect("Failed to set transparency on main webview");
+ let win_clone = main_window.clone();
main_window.on_window_event(move |event| match event {
tauri::WindowEvent::ThemeChanged(_theme) => {
- let _ = main_window.set_traffic_lights_inset(inset_x, inset_y);
+ let _ = win_clone.set_traffic_lights_inset(inset_x, inset_y);
}
_ => {}
})