You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Menu separators not hiding on Electron Desktop (Linux and Windows) #9948
RStudio Edition : Desktop
RStudio Version :"Prairie Trillium" Daily (99999999, 2021-10-05)
OS Version : Ubuntu Hirsute 21.04, Windows-10, Ubuntu 20.04.3
R Version : 4.1.1
Steps to reproduce the problem
Hover over any menu in the top-bar. "Build" is a good example, assuming that you do not have build tools set up, because every option should be disabled except for "Configure Build Tools..."
Describe the problem in detail
As seen above, some menus in the Electron version of RStudio Desktop on Ubuntu display separators for empty sections. This does not occur on Mac.
Describe the behavior you expected
Above is an example of a non-buildable project on a Mac, which displays the menu properly without displaying several separators first.
changed the title [-]Menu display visual issue on RStudio Desktop + Ubuntu Electron[/-][+]Menu separators not hiding on Electron Desktop (Linux and Windows)[/+]on Oct 12, 2021
Suggests we should be able to mark separators as hidden, we just don't currently do that. We've been relying on Qt to do that for us, and Electron on Mac does it automatically.
This required a fix on top of how Electron handles separators. The menus have hidden items in between the separators but Electron will only remove unnecessary separators if and only if they are adjacent to each other.
Activity
gtritchie commentedon Oct 12, 2021
I repro'd same problem on Ubuntu 20.04.3.
[-]Menu display visual issue on RStudio Desktop + Ubuntu Electron[/-][+]Menu separators not hiding on Electron Desktop (Linux and Windows)[/+]gtritchie commentedon Oct 12, 2021
A related issue in Electron: electron/electron#5869
Suggests we should be able to mark separators as hidden, we just don't currently do that. We've been relying on Qt to do that for us, and Electron on Mac does it automatically.
timtmok commentedon Feb 7, 2022
I've reproduced this in Linux and will take a look
timtmok commentedon Feb 9, 2022
This required a fix on top of how Electron handles separators. The menus have hidden items in between the separators but Electron will only remove unnecessary separators if and only if they are adjacent to each other.
gtritchie commentedon Mar 29, 2022
Verified on Windows-11 and Ubuntu 20 using build 2022.06.0-daily+244.