Skip to content

Conversation

@CodeF0x
Copy link
Owner

@CodeF0x CodeF0x commented Nov 17, 2025

#57

@CodeF0x
Copy link
Owner Author

CodeF0x commented Nov 19, 2025

It seems like, at least on macOS, directory: true only lets the user select directories and not files anymore. Maybe another tab for just directories is required.

@CodeF0x
Copy link
Owner Author

CodeF0x commented Nov 19, 2025

Also, make directory handling code only available when building the ui target

Copy link
Owner Author

@CodeF0x CodeF0x left a comment

Choose a reason for hiding this comment

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

Self review

>Most systems can handle 2. Increase for powerful computers.
Adding more threads does not automatically make your job
faster!</span
faster! Balance out for ffmpeg options accordingly.</span
Copy link
Owner Author

Choose a reason for hiding this comment

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

typo. Must be "your"

const files: string[] | null = await open({
multiple: true,
directory: false,
directory: true,
Copy link
Owner Author

Choose a reason for hiding this comment

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

what happens if you select multiple folders? will all files in those folder be added to the list?

let logger = Arc::new(Logger::new(Arc::clone(&progress), app_handle.clone()));
let processor = Processor::new(Arc::clone(&logger), Arc::clone(&progress));

println!("{:?}", paths);
Copy link
Owner Author

Choose a reason for hiding this comment

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

can be removed

Comment on lines +107 to +112
eprintln!("{}", error);

#[cfg(feature = "ui")]
{
let _ = app_handle.emit("file-list-error", error);
}
Copy link
Owner Author

Choose a reason for hiding this comment

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

No need to print the error to the console and no need to check if it's running in ui because it's always running in ui. This code will never get executed from the cli

Comment on lines +120 to +125
eprintln!("{}", error);

#[cfg(feature = "ui")]
{
let _ = app_handle.emit("file-list-error", error);
}
Copy link
Owner Author

Choose a reason for hiding this comment

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

check the same here too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants