Skip to content

Tab width label does not update properly #1142

@jeremypw

Description

@jeremypw

What Happened?

Changing the tab width using the headerbar widget leaves the widget label showing one different from the set tab width. Toggling the "Insert spaces instead of tabs" option causes the label to update to the correct value but the label can read "Tabs" instead of "Spaces" or vice versa.

Steps to Reproduce

  1. Open Code
  2. Open a new document (default tab width = 4 spaces)
  3. Click on the headerbar tabwidth widget and reduce the tabwidth to 2
  4. Observe that the label reads "3 spaces" while the SpinButton reads "2"
  5. Toggle the "Insert spaces instead of tabs" setting
  6. Observe the label now reads "2 Tabs". (should be "2 Spaces")

Expected Behavior

The labels remains in sync with the tabwidth setting at all times.

OS Version

6.x (Odin)

Software Version

Compiled from git

Log Output

No response

Hardware Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions