Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5726

Checkmark next to "Show Editor Toolbar" menu item can get out of sync with actual setting

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 12.2
    • None
    • editor - Options
    • All OSes.

    Description

      The checkmark next to the "Show Editor Toolbar" menu item can get out of sync with actual setting.

      To reproduce:
      1) Open a file for editing in the NetBeans editor.
      2) Click View->"Show Only Editor"
      3) Click View->"Show Editor Toolbar"
      4) Click View->"Show Only Editor"
      5) Click View->"Show Editor Toolbar"
      6) There's now a checkmark next to View->"Show Editor Toolbar", even though there is no editor toolbar showing.

      It seems the checkbox in the menu is inverted on every click rather than properly being bound to the underlying "toolbarVisible" preference from the java.util.prefs.Preferences system, which is (rightly) modified by the "Show Only Editor" action.

      (This bug report is a copy of the old BugZilla bug https://bz.apache.org/netbeans/show_bug.cgi?id=240513 .)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ebakke Eirik Bakke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m