summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-09-04 18:24:33 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-04 21:01:28 +0200
commit09685d0239288fc898bcf6cbd08b3831e8e5f964 (patch)
tree3cdf1c31577eca85ab9a84d665d4273a7f16d49e /Userland
parente8f6840471eabee2f3c01006cb5a4e3815c6c4a9 (diff)
downloadserenity-09685d0239288fc898bcf6cbd08b3831e8e5f964.zip
AudioApplet: Fix initial mute state
During conversion from Core::ConfigFile to LibConfig in c646efaf49e2d79d7cbcabb561c62977f2f084d3, the requested key name has been changed from 'Mute' to 'Muted', resulting in using always the default value.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applets/Audio/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applets/Audio/main.cpp b/Userland/Applets/Audio/main.cpp
index 295a72253f..be6247078f 100644
--- a/Userland/Applets/Audio/main.cpp
+++ b/Userland/Applets/Audio/main.cpp
@@ -219,8 +219,8 @@ int main(int argc, char** argv)
window->set_window_type(GUI::WindowType::Applet);
auto initial_volume = Config::read_i32("Audio", "Master", "Volume", 100);
- auto initial_muted = Config::read_bool("Audio", "Master", "Muted", false);
- window->set_main_widget<AudioWidget>(initial_volume, initial_muted);
+ auto initial_mute = Config::read_bool("Audio", "Master", "Mute", false);
+ window->set_main_widget<AudioWidget>(initial_volume, initial_mute);
window->show();
// This positioning code depends on the window actually existing.