SoundPlayer: Make 'volume_slider' a member variable

This change will allow us to modify the volume slider from any event
inside the widget.
This commit is contained in:
Elyse 2021-10-30 21:49:46 -05:00 committed by Andreas Kling
commit ccced92ac2
Notes: sideshowbarker 2024-07-18 01:13:04 +09:00
2 changed files with 7 additions and 6 deletions

View file

@ -73,6 +73,7 @@ private:
RefPtr<GUI::Button> m_next_button;
RefPtr<AutoSlider> m_playback_progress_slider;
RefPtr<GUI::Label> m_volume_label;
RefPtr<GUI::HorizontalSlider> m_volume_slider;
RefPtr<GUI::Label> m_timestamp_label;
bool m_nonlinear_volume_slider;