-
Notifications
You must be signed in to change notification settings - Fork 2
feat(ui): allow directory selection and include all files recursively… #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
It seems like, at least on macOS, |
|
Also, make directory handling code only available when building the ui target |
CodeF0x
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed
| eprintln!("{}", error); | ||
|
|
||
| #[cfg(feature = "ui")] | ||
| { | ||
| let _ = app_handle.emit("file-list-error", error); | ||
| } |
There was a problem hiding this comment.
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
| eprintln!("{}", error); | ||
|
|
||
| #[cfg(feature = "ui")] | ||
| { | ||
| let _ = app_handle.emit("file-list-error", error); | ||
| } |
There was a problem hiding this comment.
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
… #57