Skip to content

Commit

Permalink
Make volume value saved
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkatrina committed Jun 4, 2022
1 parent b1f077f commit 184a381
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Client/View/MainMenu/client_main_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ void ClientMainMenu::Connect() {
this, [&](int value){
sound_->setVolume(double(value) / 100);
setting_->setValue("sound_value", sound_->volume());
setting_->setValue("spin_box_value", value);
});

}
Expand Down Expand Up @@ -242,7 +243,7 @@ void ClientMainMenu::Settings() {
set_sound_->setStyleSheet("color : #88bcff; font-size: 60px;");
set_sound_->setRange(0, 100);

set_sound_->setValue((setting_->value("sound_value")).toInt());
set_sound_->setValue((setting_->value("spin_box_value")).toInt());
nothing_here_->setVisible(true);
back_to_start_->setVisible(true);
set_sound_->setVisible(true);
Expand Down

0 comments on commit 184a381

Please sign in to comment.