diff options
author | David Isaksson <davidisaksson93@gmail.com> | 2021-09-18 13:42:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-19 21:52:32 +0200 |
commit | c1458e80612493458d50122e8f63b7b071e3049e (patch) | |
tree | 4638cdf89c8cb895394cbf1aa4561903373a1a8b /Userland/Applets | |
parent | 3c8493c667991574b159fe8f74d9ff625cdd5aab (diff) | |
download | serenity-c1458e80612493458d50122e8f63b7b071e3049e.zip |
AudioApplet: Update the volume slider on update from audio server
Diffstat (limited to 'Userland/Applets')
-rw-r--r-- | Userland/Applets/Audio/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applets/Audio/main.cpp b/Userland/Applets/Audio/main.cpp index 0e1e736942..1437677e70 100644 --- a/Userland/Applets/Audio/main.cpp +++ b/Userland/Applets/Audio/main.cpp @@ -1,6 +1,7 @@ /* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * Copyright (c) 2021, kleines Filmröllchen <malu.bertsch@gmail.com> + * Copyright (c) 2021, David Isaksson <davidisaksson93@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -40,6 +41,7 @@ public: m_audio_client->on_main_mix_volume_change = [this](double volume) { m_audio_volume = static_cast<int>(volume * 100); + m_slider->set_value(m_slider->max() - m_audio_volume, GUI::CallOnChange::No); if (!m_audio_muted) update(); }; |