-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add shortcut to close plugin manager dialog and quit application #64
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
==========================================
+ Coverage 86.89% 87.10% +0.21%
==========================================
Files 9 9
Lines 1343 1365 +22
==========================================
+ Hits 1167 1189 +22
Misses 176 176 ☔ View full report in Codecov by Sentry. |
Why only on macos system? |
Hi @Czaki, the Cmd+W is a mac only thing as far as I know. The quit application one, does work for all systems |
Command-W works nice! Huge improvement! I think it would be best to have that confirmation/dialog for consistency, so users arn't shocked like I was and lose data. But frankly, we could drop that -- it's not odd to have to close the dialog before quitting application, I don't think. |
Command+W/Q do not ask for confirmation if there is no layer. |
running napari from terminal and then Command-Q I get asked to confirm. |
You are right, for command+Q should always be a confirmation if not disabled in settings... |
Isn't the usual Quit shortcut |
Alt + F4 is system shoutcut, not application one. |
Hello team, thanks for testing and comments, will leave then the shortcut for all systems, and check about the confirmation dialog :) Cheers! |
@Czaki and @psobolewskiPhD I have added a fix to emulate the current behavior of Cmd+Q of napari. Could you please check :) ? |
Co-authored-by: Grzegorz Bokota <[email protected]>
for more information, see https://pre-commit.ci
Could you check this one @dalthviz ? Thanks ! |
Gave this a check on Windows and this is what I'm seeing: So I would say that this is fixing the mentioned issues 👍 However, something that maybe is worthy to carefully think about (probably related with napari/napari#6993) is that since actions (install/uninstall) continue running even after the dialog closes, you can end up seeing a message like:
By triggering the shortcuts two consecutive times or even by executing the |
Yes I guess we will need #56 and napari/napari#6993 for this. Tracking issue is #53. |
Awesome, so this looks like it is good to go. Should I merge? or should someone besides the author do it :) ? |
We can merge but we should also investigate that numpy 2 breakage. |
Fixes #38
Fixes #4
Add shortcut to close plugin manager dialog on mac systems (Cmd+W) and quit application on all other systems (Ctrl+Q)