ServiceMenu: treballant en el menu de audio: no aplica els canvis
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user