From 258467d5bc289e340f9f8341500dc980e48df993 Mon Sep 17 00:00:00 2001 From: arabian Date: Fri, 26 Sep 2025 23:08:21 +0300 Subject: [PATCH] change: now, instead of the full path to the file, only its name is displayed at the top --- src/gui/draw.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/draw.rs b/src/gui/draw.rs index cada402..d34a781 100644 --- a/src/gui/draw.rs +++ b/src/gui/draw.rs @@ -74,8 +74,10 @@ impl SoundpadGui { RichText::new( self.audio_player_state .current_file_path - .to_string_lossy() - .to_string(), + .file_stem() + .unwrap_or_default() + .to_str() + .unwrap_or_default(), ) .color(Color32::WHITE) .family(FontFamily::Monospace),