Merge pull request #3879 from love-code-yeyixiao/TempTemplate

Temp template
This commit is contained in:
DavidXanatos 2024-05-12 11:33:04 +02:00 committed by GitHub
commit 03dd280cd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -2305,6 +2305,19 @@ void CSandMan::OnBoxClosed(const CSandBoxPtr& pBox)
AddAsyncOp(pProgress, true, tr("Executing OnBoxTerminate: %1").arg(Value2));
}
}
QStringList *bDel=new QStringList(),list= pBox->GetTextList("Template", FALSE);
foreach(const QString& Value2, list) {
if (tr("Template_Temp_").compare(Value2.left(14)) == 0)
{
bDel->append(Value2);
}
}
foreach(const QString& Value3, *bDel) {
list.removeAt(list.indexOf(Value3));
}
pBox->UpdateTextList("Template", list,FALSE);
if (!pBox->GetBool("NeverDelete", false))
{
if (pBox->GetBool("AutoDelete", false))