mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-14 05:52:32 -05:00
Cheats: Refresh active code after editing it.
This commit is contained in:
@@ -272,6 +272,8 @@ void ARCodeWidget::OnCodeEditClicked()
|
||||
return;
|
||||
|
||||
const auto* const selected = items[0];
|
||||
const bool enabled = selected->checkState() == Qt::Checked;
|
||||
|
||||
auto& current_ar = m_ar_codes[m_code_list->row(selected)];
|
||||
|
||||
if (current_ar.user_defined)
|
||||
@@ -292,6 +294,9 @@ void ARCodeWidget::OnCodeEditClicked()
|
||||
|
||||
SaveCodes();
|
||||
UpdateList();
|
||||
|
||||
if (!m_restart_required && enabled)
|
||||
ActionReplay::ApplyCodes(m_ar_codes, m_game_id, m_game_revision);
|
||||
}
|
||||
|
||||
void ARCodeWidget::OnCodeRemoveClicked()
|
||||
|
||||
Reference in New Issue
Block a user