Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Remove set_editor_preview_quality command

Richie McIlroyc60766fcfce5
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs
index c4b53b793..6e2553a9a 100644
--- a/apps/desktop/src-tauri/src/lib.rs
+++ b/apps/desktop/src-tauri/src/lib.rs
@@ -58,7 +58,7 @@ use clipboard_rs::{Clipboard, ClipboardContext};
use cpal::StreamError;
use editor_window::{EditorInstances, WindowEditorInstance};
use ffmpeg::ffi::AV_TIME_BASE;
-use general_settings::{EditorPreviewQuality, GeneralSettingsStore};
+use general_settings::GeneralSettingsStore;
use kameo::{Actor, actor::ActorRef};
use notifications::NotificationType;
use recording::{InProgressRecording, RecordingEvent, RecordingInputKind};
@@ -1643,16 +1643,6 @@ async fn set_project_config(
Ok(())
}
-#[tauri::command]
-#[specta::specta]
-#[instrument(skip(editor_instance))]
-fn set_editor_preview_quality(
- editor_instance: WindowEditorInstance,
- quality: EditorPreviewQuality,
-) {
- editor_instance.set_preview_scale(quality.scale_percent());
-}
-
#[tauri::command]
#[specta::specta]
#[instrument(skip(editor_instance))]
@@ -2507,7 +2497,6 @@ pub async fn run(recording_logging_handle: LoggingHandle, logs_dir: PathBuf) {
stop_playback,
set_playhead_position,
set_project_config,
- set_editor_preview_quality,
update_project_config_in_memory,
generate_zoom_segments_from_clicks,
permissions::open_permission_settings,