Prechádzať zdrojové kódy

Quit application automatically after calibration

Nick Steyer 1 rok pred
rodič
commit
368379492d
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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)