change: now, instead of the full path to the file, only its name is displayed at the top

This commit is contained in:
2025-09-26 23:08:21 +03:00
parent ab60e6b0ab
commit 7f0e6f7996
+4 -2
View File
@@ -74,8 +74,10 @@ impl SoundpadGui {
RichText::new( RichText::new(
self.audio_player_state self.audio_player_state
.current_file_path .current_file_path
.to_string_lossy() .file_stem()
.to_string(), .unwrap_or_default()
.to_str()
.unwrap_or_default(),
) )
.color(Color32::WHITE) .color(Color32::WHITE)
.family(FontFamily::Monospace), .family(FontFamily::Monospace),