audacity / audacity/audacity

[Audacity 4] Half-wave checkbox doesn't persist on track view change.

Open
#10,291 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
18.4k
Forks
2.7k
Avg merge
3d 1h
Merged PRs (30d)
78

Description

### Bug description

If you change track mode, the half-wave option gets unchecked, even though the half-wave view is actually still enabled.

### Steps to reproduce

1. Create a new project
2. Create a track
3. Add an audio file to the track
4. Click the three dots on the track, and click Half-wave under Track view
5. Go back to Track view and click Spectrogram
6. Go back to Track view and click Waveform
6. Go back to Track view and notice how the Half-wave option is unchecked while the track is still being displayed as half-wave.

### Expected behavior

Either switching track mode disables half-wave, or ensure half-wave option is synced with actual state.

### Actual behavior

Half-wave checkbox state is reset to unchecked however actual half-wave state is persisted.

### Audacity Version

2a6c3203f33181c1a3f57ad5f81800078a3d6275

### Operating system

macOS

### Additional context

(Unsure whether macOS specific or OS-independent, as only tested on macOS)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using the listed track-view steps on macOS, then trace the track view and half-wave option state as the view changes between Spectrogram and Waveform. Done means the checkbox reflects the actual half-wave state, or switching modes explicitly disables half-wave, with the behavior verified after repeated view changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.