diff --git a/app/musicmuster.py b/app/musicmuster.py index 4b64f1e..9748d4d 100755 --- a/app/musicmuster.py +++ b/app/musicmuster.py @@ -1122,6 +1122,18 @@ class Window(QMainWindow, Ui_MainWindow): if not track_sequence.now.path: log.error("No path for next track") return + + # Notify model + self.active_proxy_model().current_track_started() + + # Note that track is now playing + self.playing = True + + # Disable play next controls + self.disable_play_next_controls() + + # Update headers + self.update_headers() track_sequence.now.start() self.music.play(track_sequence.now.path, position) @@ -1135,21 +1147,25 @@ class Window(QMainWindow, Ui_MainWindow): volume = self.music.player.audio_get_volume() if volume < Config.VOLUME_VLC_DEFAULT: self.music.set_volume() - log.warning(f"Reset from {volume=}") + log.debug(f"Reset from {volume=}") break sleep(0.1) - # Notify model - self.active_proxy_model().current_track_started() + # Try making playing the last thing we do here to see whether + # the occasional short pause at the start of the track can be + # eliminated. - # Note that track is now playing - self.playing = True + # # Notify model + # self.active_proxy_model().current_track_started() - # Disable play next controls - self.disable_play_next_controls() + # # Note that track is now playing + # self.playing = True - # Update headers - self.update_headers() + # # Disable play next controls + # self.disable_play_next_controls() + + # # Update headers + # self.update_headers() def preview(self) -> None: """