Add toggle status view menu items#6137
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6137 +/- ##
=======================================
Coverage 91.60% 91.61%
=======================================
Files 583 583
Lines 51364 51371 +7
=======================================
+ Hits 47051 47061 +10
+ Misses 4313 4310 -3
|
DragaDoncila
left a comment
There was a problem hiding this comment.
Thanks for this one @lucyleeow. Can confirm Toggle Play, Toggle Fullscreen and Toggle Menubar are now showing the checkmarks in the menu as expected on Mac and Ubuntu (didn't check Windows). Can you please update the description to mention these three items specifically, as some of them e.g. the axes already had the ToggleRules so they haven't changed.
|
@DragaDoncila is this ready to go in? |
|
mypy error unrelated and fixed by #6230 |
|
@lucyleeow yep, I've added the ready-to-merge label and will merge in 24 hours! |
|
There is currently a test failing due to |
psobolewskiPhD
left a comment
There was a problem hiding this comment.
Makes sense to me, thanks.
Note: testing this did remind me of that on macOS we get double Full Screen toggle in the View menu, which I'd previously reported.
#5092 (comment)
It's wierd.
Here, toggling the native macOS full screen don't trigger the check-mark toggle status.
Very niche case, doubt anything can be done about it here.
Does the 2nd full screen toggle,'Enter Full Screen' have a check next to it? Also, have you noticed this before? I don't know if we previously (with action manager) had check marks? Worth adding to #5092 so it's noted at least? |
|
I very rarely use full screen, so hard for me to say. |
Good idea, we can do that with 'when', I will open an issue for that to keep track. |
|
Yep, agreed - we should just hide the non native option on Mac. Looks like the test failure here is a timeout |
|
I'll put up a PR to fix #6240, hopefully an easy fix |
Had me very confused... That's no PR, that's an issue! |
* main: Move `test_file_menu.py` to new app model location (napari#6233) Add toggle status view menu items (napari#6137) More removal of np.all(... == ...) (napari#6238) [pre-commit.ci] pre-commit autoupdate (napari#6229)

Fixes/Closes
Ref: #4826 (comment)
Description
Adds toggle status to view menu items:
Toggle Play,Toggle FullscreenandToggle Menubar. These were not added as part of view menu app model migration PR as they did not exist in main and thus decided to be out of scope of that PRReferences
Type of change
How has this been tested?
as there are small differences between the two Qt bindings.
Final checklist:
trans.to make them localizable.For more information see our translations guide.