Selaa lähdekoodia

Quit application automatically after calibration

Nick Steyer 2 vuotta sitten
vanhempi
commit
368379492d
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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)