Close Training Photo Workers Cleanly

This commit is contained in:
firestar5683
2026-11-28 12:18:01 -06:00
parent 904278f8f3
commit 7c9357c62b
@@ -180,7 +180,7 @@ class TextureLoader:
return gui_app._load_image_from_path(os.path.join(BASEDIR, "openpilot/selfdrive/assets", path))
def queue(self, paths: list[str]):
threading.Thread(target=self._load, args=(paths, self._generation), daemon=True).start()
threading.Thread(target=self._load, args=(paths, self._generation), name="training-photos").start()
def _load(self, paths: list[str], generation: int):
for path in paths:
@@ -431,7 +431,7 @@ class TrainingGuide(Widget):
finish = HeroStep("bg_finish", tr_noop("Congratulations! You have completed StarPilot training."),
(
tr_noop("This guide can be replayed at any time from the device settings."),
tr_noop("See the StarPilot wiki at github.com/StarPilotHQ/StarPilot for features and supported vehicles."),
tr_noop("See the StarPilot wiki for features and supported vehicles."),
),
loader)
finish.add_control(GuideButton(tr_noop("Restart"), self._restart, rl.Color(64, 64, 64, 255), rl.WHITE), RESTART_RECT)
@@ -485,7 +485,7 @@ class TrainingGuide(Widget):
(
tr_noop("You must pay attention at all times."),
tr_noop("If you are distracted, StarPilot will show alerts of increasing severity, and you will be locked out from engaging."),
tr_noop("If the problem persists, the system will begin decelerating the vehicle."),
tr_noop("When StarPilot controls speed, it can slow the car as alerts escalate."),
),
), tr_noop("Tap the alert to continue"), "alert", TEAL, loader, ALERT_RECT, nxt, draw_distracted_screen),
dm_record,
@@ -527,7 +527,7 @@ class TrainingGuide(Widget):
tr_noop("Change lanes with driver assistance."),
), "check", GREEN, nxt),
ChecklistStep(tr_noop("StarPilot cannot:"), (
tr_noop("Stay engaged while the driver is distracted."),
tr_noop("Replace your attention or readiness to take over."),
tr_noop("See other cars during a lane change."),
tr_noop("Avoid construction barriers, cones, or pedestrians."),
tr_noop("React to unsafe situations like close vehicle cut-ins or road hazards."),