Skip to content

Menu separators not hiding on Electron Desktop (Linux and Windows) #9948

Closed

Description

@GCRev

System details

    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

image

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

image

Above is an example of a non-buildable project on a Mac, which displays the menu properly without displaying several separators first.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added this to the Electron milestone on Oct 12, 2021
  2. gtritchie commented on Oct 12, 2021

    @gtritchie
    Member

    I repro'd same problem on Ubuntu 20.04.3.

  3. 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
  4. gtritchie commented on Oct 12, 2021

    @gtritchie
    Member

    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.

  5. self-assigned this
    on Feb 7, 2022
  6. timtmok commented on Feb 7, 2022

    @timtmok
    Contributor

    I've reproduced this in Linux and will take a look

  7. timtmok commented on Feb 9, 2022

    @timtmok
    Contributor

    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.

  8. gtritchie commented on Mar 29, 2022

    @gtritchie
    Member

    Verified on Windows-11 and Ubuntu 20 using build 2022.06.0-daily+244.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions