forked from genewildish/Mainline
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:
@@ -1134,8 +1134,11 @@ def run_pipeline_mode(preset_name: str = "demo"):
|
|||||||
frame += 1
|
frame += 1
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pipeline.cleanup()
|
||||||
finally:
|
display.cleanup()
|
||||||
|
print("\n \033[38;5;245mPipeline stopped\033[0m")
|
||||||
|
return # Exit pipeline mode, not font picker
|
||||||
|
|
||||||
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user