Skip to content

refactor(gui): collapse redundant revealOffscreen comfortMargin ternary (#3033). Principle XI.#3039

Merged
ten9876 merged 1 commit into
mainfrom
aetherclaude/issue-3033
May 24, 2026
Merged

refactor(gui): collapse redundant revealOffscreen comfortMargin ternary (#3033). Principle XI.#3039
ten9876 merged 1 commit into
mainfrom
aetherclaude/issue-3033

Conversation

@aethersdr-agent

Copy link
Copy Markdown
Contributor

Summary

Fixes #3033

What was changed

refactor(gui): collapse redundant revealOffscreen comfortMargin ternary (#3033). Principle XI.

Files modified

  • src/gui/MainWindow.cpp
 src/gui/MainWindow.cpp | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

Generated by AetherClaude (automated agent for AetherSDR)


🤖 aethersdr-agent · cost: $2.2634 · model: claude-opus-4-7

…ry (#3033). Principle XI.

Post-#3030, the RevealOffscreen branch returns the same comfort margin as the
default arm, so the 3-way ternary at MainWindow.cpp:12241-12244 was misleading
about implying two distinct behaviors.  Collapse to a 2-way ternary on
isSpectrumClick alone, and drop the now-unused `revealOffscreen` local (would
trip -Wunused-variable on strict-warnings configs).  Pulled the explanatory
comment forward and reframed it now that the explicit RevealOffscreen branch
is gone.

Pure refactor: both removed branches resolved to the same constant
(kRevealComfortEdgeMarginFrac = 0.18), so no behavior change.  The
revealOffscreen parameter at MainWindow.cpp:10656 is a separate, unrelated
function-parameter scope and is untouched.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@aethersdr-agent aethersdr-agent Bot enabled auto-merge (squash) May 24, 2026 04:42
@ten9876 ten9876 merged commit 40a3340 into main May 24, 2026
5 checks passed
@ten9876 ten9876 deleted the aetherclaude/issue-3033 branch May 24, 2026 05:34
G6PWY-Chris pushed a commit to G6PWY-Chris/AetherSDR that referenced this pull request Jun 22, 2026
…ry (aethersdr#3033). Principle XI. (aethersdr#3039)

## Summary

Fixes aethersdr#3033

### What was changed

refactor(gui): collapse redundant revealOffscreen comfortMargin ternary
(aethersdr#3033). Principle XI.

### Files modified

- `src/gui/MainWindow.cpp`

```
 src/gui/MainWindow.cpp | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
```

---
Generated by AetherClaude (automated agent for AetherSDR)

---
<sub>🤖 aethersdr-agent · cost: $2.2634 · model: claude-opus-4-7</sub>

Co-authored-by: aethersdr-agent[bot] <273844287+aethersdr-agent[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collapse redundant ternary in revealFrequencyIfNeeded comfortMargin (cleanup, post-#3030)

1 participant