-
Notifications
You must be signed in to change notification settings - Fork 10
[enh] Remove modal flag from installer dialog #166
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
base: main
Are you sure you want to change the base?
Conversation
@dalthviz would appreciate your thoughts on this, perhaps I'm overlooking something. |
Hi there @psobolewskiPhD ! Gave a check to this and seems like is working as expected 👍 As a side note, regarding why the dialog was set as a modal, maybe at some point in the past the dialog needed to be like that to prevent people to somehow interrupt installations in progress? From a quick check seems like PR #42 could have helped with that? Before that PR, closing the dialog would cause its destruction. Now, when the dialog is closed, in reality it's just hidden so just a single instance is created per napari launch and that single instance is kept while napari is running so in progress installations can be tracked? 🤔 |
cc: @TimMonko @DragaDoncila what are y'alls thoughts on making the dialog not modal? |
Quick driveby, this is good enough reason to remove the modal to me. |
This is my concern too. I remember Gonzalo bringing this up. I think we were supposed to add a progress tracker in napari so the plugin manager could submit the ongoing tasks. This is still not merged:
I would consider those blockers for this PR to land. |
@dalthviz can you take over the aforementioned PRs? 🙏 |
How is this different from the current situation? You can close napari with the manager open -- try it! It takes priority! |
What do you mean about being able to close napari with the manager open? For me, the modal nature completely blocks interaction with the napari interface, to be able to close. I also can't close napari by "normal" windows operations like from the task bar and such, it will be blocked. I can ctrl+w close napari without issue though (makes sense I guess) If I close the manager during install and then also napari, I get this error:
It seems after many times in testing this behavior and trying to install a plugin, I haven't bricked my environment, to my surprise. |
I can quit with no issue 🤷 Edit: my understanding was that installation is done outside napari--sub process?--so closing manager shouldn't matter. But this is from my phone so 🤷 |
Yes, both Footnotes
|
So is the thought that running installations should warn when trying to quit napari? (again regardless the decision on this PR, right now you can quit napari with the installer open/running) |
Exactly, hopefully to be addressed with the two PRs mentioned in #166 (comment) |
Closes: #117
This has been something mildly irritating for a while, so I finally looked into it.
It turned out to be super simple?
With this change the installer is no longer modal, so you can click back to napari and do whatever while plugins are installing, which is particularly handy if you choose to install several.