perf(execution): close readback and no-match projects without resaving

This commit is contained in:
阿白叔 committed 2026-10-19 09:48:54 +08:00
1 parent 5a0f62f0de
commit e5ebc5d14e
2 files changed
+41 -4

No files matched your search

@@ -909,9 +909,11 @@ Sub QPFinishBatchItem()
ValueStates.Item(CStr(Index)).Add "custom_value", QPCustomValue(Command)
Next
End If
If FinalState = "restored_ok" Or Not QP_SessionMode Then
If FinalState = "restored_ok" Then
QPCloseBatchProject TargetPath, True
QP_BatchSaveCommitted = True
ElseIf Not QP_SessionMode Then
QPCloseBatchProject TargetPath, False
End If
If FinalState = "restored_ok" Then
QPProgress "verify_saved_project", 0, 1
@@ -927,7 +929,7 @@ Sub QPFinishBatchItem()
Plans.Add CStr(Index), Candidate
Next
QPVerifyRestoredPlans Command, Records, Plans, ValueStates
If Not QP_SessionMode Then QPCloseBatchProject TargetPath, True
If Not QP_SessionMode Then QPCloseBatchProject TargetPath, False
FinalState = "saved_ok"
If QP_SessionMode Then
QP_BatchMessage = QP_BatchMessage & " Saved and reopened for readback; owned project checkpoint verified."