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

Check on napari, if the plugin manager is busy and provide a dialog on close #53

Open
goanpeca opened this issue Jun 12, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@goanpeca
Copy link
Contributor

goanpeca commented Jun 12, 2024

Avoid closing napari if the plugin manager is busy

ref: https://github.com/napari/napari/blob/eab7661459e70479c7c7d587a36463f3b099b64a/napari/_qt/qt_main_window.py#L442

@goanpeca goanpeca self-assigned this Jun 12, 2024
@jaimergp
Copy link
Contributor

Short-term I guess we would need to poll napari directly. Long-term I envision an API in napari where plugins can register their long-running tasks (with a predefined expiry date, so maybe it's a matter of "keeping them alive" as needed) and would also unregister them once done. Then napari would check that list when needed (e.g. upon closing), and could even be exposed somewhere in the UI for more information.

@jaimergp
Copy link
Contributor

The status payload would look something like this:

{
  "status": "some-value-from-enum",
  "description": "additional details for a tooltip or whatever",
  "timestamp": "ISO-something for the moment the payload was sent (or received; delegated to napari?)",
  "id": "some sort of unique identifier to retrieve this later and remove it"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants