Skip to content

Commit 500a11a

Browse files
committed
chore: update version; rodio cleanup
1 parent 5ad815d commit 500a11a

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shell_command_menu"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
edition = "2024"
55

66
[dependencies]

src/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
1/27/26 - v0.2.5
4+
Updated to latest rodio; code cleanup; added test cases
5+
36
7/4/25
47
Updated formatting for Rust 1.88 and Clippy
58

src/menu_main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub async fn display_menu(config_path: &PathBuf) {
9292
if let Some(index) = num.checked_sub(1) {
9393
if let Some(command) = config.commands.get(index) {
9494
if let Some(cmd_sound) = &config.cmd_sound {
95-
tokio::spawn(play_sound(cmd_sound.clone()));
95+
tokio::spawn(play_sound(cmd_sound.to_path_buf()));
9696
}
9797
if config.window_title_support {
9898
set_window_title(&choice);

src/utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ pub async fn play_sound(file_path: PathBuf) {
4242
// Spawning a blocking task
4343

4444
match OutputStreamBuilder::open_default_stream() {
45-
Ok(stream_handle) => {
45+
Ok(mut stream_handle) => {
4646
// Trying to get the default audio output stream
47+
stream_handle.log_on_drop(false); // Set log_on_drop to false
4748
match File::open(&file_path) {
4849
Ok(file) => {
4950
// Trying to open the audio file

0 commit comments

Comments
 (0)