diff options
Diffstat (limited to 'Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp')
-rw-r--r-- | Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp b/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp index 7d63df2a93..57345df9e7 100644 --- a/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp +++ b/Userland/Applications/SoundPlayer/SoundPlayerWidgetAdvancedView.cpp @@ -213,6 +213,10 @@ void SoundPlayerWidgetAdvancedView::play_state_changed(Player::PlayState state) m_stop_action->set_enabled(state != PlayState::Stopped && state != PlayState::NoFileLoaded); m_playback_progress_slider->set_enabled(state != PlayState::NoFileLoaded); + if (state == PlayState::Stopped) { + m_playback_progress_slider->set_value(m_playback_progress_slider->min(), GUI::AllowCallback::No); + m_visualization->reset_buffer(); + } } void SoundPlayerWidgetAdvancedView::loop_mode_changed(Player::LoopMode) |