KBNLresearch / iromlab

Loader software for automated imaging of optical media with Nimbie disc robot
Apache License 2.0
33 stars 5 forks source link

When batch is finished, show messagebox before closing #17

Closed bitsgalore closed 7 years ago

bitsgalore commented 7 years ago

What makes this a bit tricky is that EOB is detected from worker thread, and it's not possible to invoke a messagebox from there. So somehow the worker thread would need to signal the main thread that batch is finished, after which the main thread takes care of the messagebox/closing the application. Perhaps something along these lines might work:

http://stackoverflow.com/a/25419716/1209004

bitsgalore commented 7 years ago

Done: https://github.com/KBNLresearch/iromlab/commit/a0efe41f6f7665248aa50a5c70d13e6b183f6e0b