Cheat codes: Make newly added codes start disabled.

They don't have the call to be activated immediately after being added.
This commit is contained in:
TryTwo 2026-02-24 01:40:05 -07:00
parent 02db73c8dc
commit 8843c14fba
2 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ void ARCodeWidget::AddCode(ActionReplay::ARCode code)
void ARCodeWidget::OnCodeAddClicked()
{
ActionReplay::ARCode ar;
ar.enabled = true;
ar.enabled = false;
m_cheat_code_editor->SetARCode(&ar);
if (m_cheat_code_editor->exec() == QDialog::Rejected)

View File

@ -218,7 +218,7 @@ void GeckoCodeWidget::OnItemChanged(QListWidgetItem* item)
void GeckoCodeWidget::AddCode()
{
Gecko::GeckoCode code;
code.enabled = true;
code.enabled = false;
m_cheat_code_editor->SetGeckoCode(&code);
if (m_cheat_code_editor->exec() == QDialog::Rejected)