Fix warnings, remove ffmpeg output from cmd

This commit is contained in:
csd4ni3l
2026-03-05 21:29:12 +01:00
parent 4128566048
commit dff8d5aeff
3 changed files with 3 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ pub fn list_outputs() -> Vec<(String, String)> {
}
pub fn move_output_to_sink(output_index: String, sink_index: String) {
let output = Command::new("pactl")
let _ = Command::new("pactl")
.args(&["move-source-output", output_index.as_str(), sink_index.as_str()]) // as_str is needed here as you cannot instantly dereference a growing String (Rust...)
.output()
.expect("Failed to execute process");

View File

@@ -574,7 +574,7 @@ fn draw(mut contexts: EguiContexts, mut app_state: ResMut<AppState>) -> Result {
}
});
let window_height = ctx.screen_rect().height();
let window_height = ctx.content_rect().height();
egui::TopBottomPanel::bottom("currently_playing")
.exact_height(window_height * 0.1)

View File

@@ -43,7 +43,7 @@ pub fn check_and_download_yt_dlp() {
}
pub fn check_ffmpeg() -> bool{
return std::process::Command::new("ffmpeg").spawn().is_ok();
return std::process::Command::new("ffmpeg").output().is_ok();
}
pub fn check_and_download_ffmpeg() {