mirror of
https://github.com/csd4ni3l/music-player.git
synced 2026-01-01 12:13:42 +01:00
fix playlist shuffling, improve file manager navigation, keep playlist selected after selecting a playlist when adding music
This commit is contained in:
@@ -516,7 +516,10 @@ class Main(arcade.gui.UIView):
|
||||
self.skip_sound() # reset properties
|
||||
|
||||
if self.shuffle:
|
||||
self.queue.append(f"{self.current_tab}/{random.choice(self.tab_content[self.current_tab])}")
|
||||
if self.current_mode == "files":
|
||||
self.queue.append(f"{self.current_tab}/{random.choice(self.tab_content[self.current_tab])}")
|
||||
elif self.current_mode == "playlist":
|
||||
self.queue.append(random.choice(self.playlist_content[self.current_tab]))
|
||||
|
||||
if not self.current_music_player is None:
|
||||
if self.time_to_seek is not None:
|
||||
|
||||
Reference in New Issue
Block a user