Skip to content

Commit cbecd44

Browse files
committed
cleanup
1 parent aa2e096 commit cbecd44

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

apps/desktop/src-tauri/src/windows.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ impl ShowCapWindow {
380380
Self::InProgressRecording {
381381
position: _position,
382382
} => {
383-
let mut width = 180.0;
384-
width += 32.0;
383+
let mut width = 180.0 + 32.0;
385384

386385
let height = 40.0;
387386

apps/desktop/src/routes/(window-chrome)/(main).tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ import {
4242
events,
4343
} from "~/utils/tauri";
4444

45+
const MAIN_WINDOW_SIZE = {
46+
width: 300,
47+
height: 290 + (window.FLAGS.systemAudioRecording ? 50 : 0),
48+
};
49+
4550
export default function () {
4651
const { options, setOptions } = createOptionsQuery();
4752
const currentRecording = createCurrentRecordingQuery();
@@ -101,10 +106,6 @@ export default function () {
101106

102107
// Enforce window size with multiple safeguards
103108
const currentWindow = getCurrentWindow();
104-
const MAIN_WINDOW_SIZE = {
105-
width: 300,
106-
height: 290 + (window.FLAGS.systemAudioRecording ? 50 : 0),
107-
};
108109

109110
// Set initial size
110111
await currentWindow.setSize(

apps/desktop/src/routes/in-progress-recording.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { createEffect, createSignal, type ComponentProps } from "solid-js";
1+
import {
2+
createEffect,
3+
createSignal,
4+
onMount,
5+
type ComponentProps,
6+
} from "solid-js";
27
import { cx } from "cva";
38
import { type as ostype } from "@tauri-apps/plugin-os";
49
import { createTimer } from "@solid-primitives/timer";

crates/media/src/sources/screen_capture.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,6 @@ impl PipelineSourceTask for ScreenCaptureSource<CMSampleBufferCapture> {
590590

591591
match typ {
592592
SCStreamOutputType::Screen => {
593-
println!("screen: {frame_time}");
594593
let Some(pixel_buffer) = sample_buffer.image_buf() else {
595594
return Some(ControlFlow::Continue(()));
596595
};

0 commit comments

Comments
 (0)