Skip to content

Commit

Permalink
fix editor 0.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Dec 16, 2024
1 parent 256a05b commit b212ab6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "desktop"
version = "0.3.8"
version = "0.3.9"
description = "Beautiful screen recordings, owned by you."
authors = ["you"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions apps/desktop/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ mod windows;

use audio::AppSounds;
use auth::{AuthStore, AuthenticationInvalid};
use cap_editor::EditorInstance;
use cap_editor::EditorState;
use cap_editor::{EditorInstance, FRAMES_WS_PATH};
use cap_media::feeds::{AudioInputFeed, AudioInputSamplesSender};
use cap_media::frame_ws::WSFrame;
use cap_media::sources::CaptureScreen;
Expand Down Expand Up @@ -879,7 +879,7 @@ async fn create_editor_instance(
println!("Pretty name: {}", meta.pretty_name);

Ok(SerializedEditorInstance {
frames_socket_url: format!("ws://localhost:{}{FRAMES_WS_PATH}", editor_instance.ws_port),
frames_socket_url: format!("ws://localhost:{}", editor_instance.ws_port),
recording_duration: editor_instance.recordings.duration(),
saved_project_config: {
let project_config = editor_instance.project_config.1.borrow();
Expand Down
2 changes: 0 additions & 2 deletions crates/editor/src/editor_instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,6 @@ pub struct EditorState {
pub preview_task: Option<tokio::task::JoinHandle<()>>,
}

pub const FRAMES_WS_PATH: &str = "/frames-ws";

pub struct Segment {
pub audio: Arc<Option<AudioData>>,
pub cursor: Arc<CursorEvents>,
Expand Down
2 changes: 1 addition & 1 deletion crates/editor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ mod editor;
mod editor_instance;
mod playback;

pub use editor_instance::{EditorInstance, EditorState, Segment, FRAMES_WS_PATH};
pub use editor_instance::{EditorInstance, EditorState, Segment};

1 comment on commit b212ab6

@vercel
Copy link

@vercel vercel bot commented on b212ab6 Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.