Skip to content

Add ability to run code when instance is first created#32

Merged
MHendricks merged 3 commits intomainfrom
mikeh/more_improvements
Jun 12, 2025
Merged

Add ability to run code when instance is first created#32
MHendricks merged 3 commits intomainfrom
mikeh/more_improvements

Conversation

@MHendricks
Copy link
Member

Checklist

  • I have read the CONTRIBUTING.md document
  • I formatted my changes with black
  • I linted my changes with flake8
  • I have added documentation regarding my changes where necessary
  • Any pre-existing tests continue to pass
  • Additional tests were made covering my changes

Types of Changes

  • Bugfix (change that fixes an issue)
  • New Feature (change that adds functionality)
  • Documentation Update (if none of the other choices apply)

This can happen if the Qt application was closed or killed before instance_shutdown
is called. It will now show a warning instead of raising an error to make
it easier to debug why your prefs may not be saving.

This helps with our Nuke integration which we haven't found a good way to
detect the app shutting down before our widget is deleted.
This allows other application integrations to more easily control when
they populate their excepthooks.
This lets an application integration configure the instance to better work
with the application.
@MHendricks MHendricks merged commit dd1ef2a into main Jun 12, 2025
17 checks passed
@MHendricks MHendricks deleted the mikeh/more_improvements branch June 12, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant