Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No exit handler? #251

Closed
klayoutmatthias opened this issue Apr 2, 2019 · 0 comments

Comments

@klayoutmatthias
Copy link
Collaborator

commented Apr 2, 2019

This refers to https://www.klayout.de/forum/discussion/1208

I could not find a way to register an exit handler.

1.) MainWindow.destroyed should be a signal available for this purpose. But it's hidden by the "destroyed" attribute. TODO: remove this attribute ("_destroyed" is the recommended version of the attribute).

2.) Using Ruby's at_exit segfaults (both with 0.25.x and master branch).

A working solution is to use Application#aboutToQuit

@klayoutmatthias klayoutmatthias self-assigned this Apr 2, 2019

klayoutmatthias added a commit that referenced this issue Apr 4, 2019
Merge pull request #256 from KLayout/issue-251
Fixed #251 - exit handler missing? [skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.