mirror of
https://github.com/csd4ni3l/music-player.git
synced 2026-01-01 04:03:42 +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_artist = artist
|
||||||
self.current_music_title = title
|
self.current_music_title = title
|
||||||
self.current_music_title_label.text = title
|
self.current_music_title_label.text = truncate_end(title, int(self.window.width / 50))
|
||||||
self.current_music_artist_label.text = artist
|
self.current_music_artist_label.text = truncate_end(artist, int(self.window.width / 50))
|
||||||
self.current_music_path = music_path
|
self.current_music_path = music_path
|
||||||
self.current_music_thumbnail_image.texture = self.file_metadata[music_path]["thumbnail"]
|
self.current_music_thumbnail_image.texture = self.file_metadata[music_path]["thumbnail"]
|
||||||
self.time_label.text = "00:00"
|
self.time_label.text = "00:00"
|
||||||
|
|||||||
Reference in New Issue
Block a user