fix ServiceMenu: al modificar opcions que requereixen reiniciar, si canvies de menu i tornes, no mostra els valors correctes
This commit is contained in:
@@ -533,7 +533,7 @@ void ServiceMenu::AdjustListValues()
|
||||
auto option = getOptionEntryByCaption(Lang::getText("[SERVICE_MENU] LANGUAGE"));
|
||||
for (size_t i = 0; i < option->value_list.size(); ++i)
|
||||
{
|
||||
if (Lang::getCodeFromName(option->value_list[i]) == Options::settings.language)
|
||||
if (Lang::getCodeFromName(option->value_list[i]) == Options::pending_changes.new_language)
|
||||
{
|
||||
option->list_index = i;
|
||||
}
|
||||
@@ -544,7 +544,7 @@ void ServiceMenu::AdjustListValues()
|
||||
auto option = getOptionEntryByCaption(Lang::getText("[SERVICE_MENU] DIFFICULTY"));
|
||||
for (size_t i = 0; i < option->value_list.size(); ++i)
|
||||
{
|
||||
if (Options::getDifficultyCodeFromName(option->value_list[i]) == Options::settings.difficulty)
|
||||
if (Options::getDifficultyCodeFromName(option->value_list[i]) == Options::pending_changes.new_difficulty)
|
||||
{
|
||||
option->list_index = i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user