fix playlist shuffling, improve file manager navigation, keep playlist selected after selecting a playlist when adding music

This commit is contained in:
csd4ni3l
2025-07-27 12:32:44 +02:00
parent c629966677
commit be9f8ed773
3 changed files with 23 additions and 13 deletions

View File

@@ -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: