mirror of
https://github.com/csd4ni3l/music-player.git
synced 2025-11-05 02:58:15 +01:00
fix text was not truncated when updating artist and title
This commit is contained in:
@@ -488,8 +488,8 @@ class Main(arcade.gui.UIView):
|
||||
|
||||
self.current_music_artist = artist
|
||||
self.current_music_title = title
|
||||
self.current_music_title_label.text = title
|
||||
self.current_music_artist_label.text = artist
|
||||
self.current_music_title_label.text = truncate_end(title, int(self.window.width / 50))
|
||||
self.current_music_artist_label.text = truncate_end(artist, int(self.window.width / 50))
|
||||
self.current_music_path = music_path
|
||||
self.current_music_thumbnail_image.texture = self.file_metadata[music_path]["thumbnail"]
|
||||
self.time_label.text = "00:00"
|
||||
|
||||
Reference in New Issue
Block a user