fix(app): exit to prompt instead of font picker when pygame exits

When user presses Ctrl+C in pygame display, the pipeline mode now
returns to the command prompt instead of continuing to the font picker.
This commit is contained in:
2026-03-16 14:02:11 -07:00
parent ce9d888cf5
commit 4616a21359

View File

@@ -1134,8 +1134,11 @@ def run_pipeline_mode(preset_name: str = "demo"):
frame += 1 frame += 1
except KeyboardInterrupt: except KeyboardInterrupt:
pass
finally:
pipeline.cleanup() pipeline.cleanup()
display.cleanup() display.cleanup()
print("\n \033[38;5;245mPipeline stopped\033[0m") print("\n \033[38;5;245mPipeline stopped\033[0m")
return # Exit pipeline mode, not font picker
pipeline.cleanup()
display.cleanup()
print("\n \033[38;5;245mPipeline stopped\033[0m")