Browse Source

Quit application automatically after calibration

Nick Steyer 1 year ago
parent
commit
368379492d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Assets/CalibrationRecorderBehavior.cs

+ 2 - 0
Assets/CalibrationRecorderBehavior.cs

@@ -66,6 +66,8 @@ namespace Assets
         private void MarkerBehavior_PathFinished(object sender, EventArgs e)
         {
             enabled = false;
+            taskQueue.Add(() => Application.Quit());
+            Task.Run(() => taskQueue.Take().Invoke());
         }
 
         private void PersonManager_DetectionReady(object sender, EventArgs e)