simonkrauter / NiGui

Cross-platform desktop GUI toolkit written in Nim
MIT License
718 stars 50 forks source link

stop mainLoop without quit whole application #128

Closed enthus1ast closed 3 years ago

enthus1ast commented 3 years ago

I try to use nigui to occasionally show a simple gui in an otherwise cli application. The problem is that app.quit() just calls system.quit() so the whole program is shut down.

It would be nice to have a way to just stop the mainLoop without quitting the whole application.

enthus1ast commented 3 years ago

ok, it DOES work with:

app.quit(false)

so closed (before trustable-code sees the noise :) )