Fix that the new trigger can not be displayed.

This commit is contained in:
love-code-yeyixiao 2024-02-25 15:44:57 +08:00
parent 7f67acdbc8
commit 1ff527e52b
1 changed files with 4 additions and 2 deletions

View File

@ -231,8 +231,8 @@ void COptionsWindow::LoadAdvanced()
AddTriggerItem(Value, eAutoExec);
foreach(const QString & Value, m_pBox->GetTextList("OnFileRecovery", m_Template))
AddTriggerItem(Value, eRecoveryCheck);
foreach(const QString & Value, m_pBox->GetTextList("OnBoxDelete", m_Template))
AddTriggerItem(Value, eDeleteCmd);
foreach(const QString& Value, m_pBox->GetTextList("OnBoxTerminate", m_Template))
AddTriggerItem(Value, eTerminateCmd);
ShowTriggersTmpl();
//
@ -300,6 +300,8 @@ void COptionsWindow::ShowTriggersTmpl(bool bUpdate)
AddTriggerItem(Value, eRecoveryCheck, Template);
foreach(const QString & Value, m_pBox->GetTextListTmpl("OnBoxDelete", Template))
AddTriggerItem(Value, eDeleteCmd, Template);
foreach(const QString & Value, m_pBox->GetTextListTmpl("OnBoxTerminate", Template))
AddTriggerItem(Value, eTerminateCmd, Template);
}
}
else if (bUpdate)