mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
AudioApplet: Fix initial mute state
During conversion from Core::ConfigFile to LibConfig
in c646efaf49
, the requested key name
has been changed from 'Mute' to 'Muted', resulting in using always
the default value.
This commit is contained in:
parent
e8f6840471
commit
09685d0239
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue