Python problem with DOCUMENTDIDCLOSE

Just working on a Python-based .glyphsPlugin.

It seems my callback for DOCUMENTDIDCLOSE is never called whereas DOCUMENTWILLCLOSE works as expected. Any thoughts?

I just had a look at the code around those callback. You are right, the DOCUMENTDIDCLOSE is never called but the DOCUMENTWILLCLOSE is actually called after the document is closed.

What would you expect to be different between the two notifications?

No idea but having something non-functional in the API is not good.

I have fixed it.

1 Like