ServiceMenu: treballant en el menu de audio: no aplica els canvis

This commit is contained in:
2025-06-05 14:39:32 +02:00
parent d4bb3109c7
commit 5af75f74d1
4 changed files with 22 additions and 4 deletions

View File

@@ -7,6 +7,7 @@
#include "resource.h"
#include "options.h"
#include "section.h" // Para Name, name, Options, options, AttractMode
#include "audio.h"
// Singleton
ServiceMenu *ServiceMenu::instance_ = nullptr;
@@ -163,15 +164,18 @@ void ServiceMenu::setSelectorLeft()
void ServiceMenu::acceptSelection()
{
// Carpeta
if (display_options_.at(selected_).type == ValueType::FOLDER)
{
previous_settings_group_ = current_settings_group_;
current_settings_group_ = display_options_.at(selected_).target_group;
updateMenu(current_settings_group_);
selected_ = 0;
return;
}
else if (display_options_.at(selected_).behavior == OptionBehavior::SELECT)
// Opción
if (display_options_.at(selected_).behavior == OptionBehavior::SELECT)
{
if (display_options_.at(selected_).caption == "RESET")
{
@@ -191,6 +195,7 @@ void ServiceMenu::acceptSelection()
section::options = section::Options::QUIT_WITH_CONTROLLER;
return;
}
return;
}
}
@@ -278,6 +283,10 @@ void ServiceMenu::applySettings(ServiceMenu::SettingsGroup group)
Screen::get()->applySettings();
break;
case SettingsGroup::AUDIO:
Audio::get()->applySettings();
break;
default:
break;
}