Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Remove unused scale channel from screenshot editor

Richie McIlroyf984fab97e57
diff --git a/apps/desktop/src-tauri/src/screenshot_editor.rs b/apps/desktop/src-tauri/src/screenshot_editor.rs
index f550c1256..1a56e9849 100644
--- a/apps/desktop/src-tauri/src/screenshot_editor.rs
+++ b/apps/desktop/src-tauri/src/screenshot_editor.rs
@@ -98,8 +98,7 @@ impl ScreenshotEditorInstances {
match instances.entry(window.label().to_string()) {
Entry::Vacant(entry) => {
let (frame_tx, frame_rx) = watch::channel(None);
- let (_scale_tx, scale_rx) = watch::channel(100u32);
- let (ws_port, ws_shutdown_token) = create_watch_frame_ws(frame_rx, scale_rx).await;
+ let (ws_port, ws_shutdown_token) = create_watch_frame_ws(frame_rx).await;
let (data, width, height) = {
let key = path