fix(transmit): emit micStateChanged() from setMonGainSb (#2180)#3240
Merged
ten9876 merged 1 commit intoMay 28, 2026
Merged
Conversation
…Sb (aethersdr#2180) Both setters updated m_micLevel / m_monGainSb and emitted commandReady but never emitted micStateChanged(), so any UI control bound to mic state via the model signal — e.g. a MIC level slider updated by MIDI controller, keyboard shortcut, or radio echo — would not repaint until the next unrelated state event. The fix mirrors the pattern established for VOX setters in aethersdr#2084 (setVoxEnable/Level/Delay all emit phoneStateChanged() unconditionally). Full setter audit: all other setters that mutate mic-state members (setMicSelection, setSpeechProcessorEnable, setSpeechProcessorLevel) already emit micStateChanged(). setMonGainCw and setMonPanCw correctly emit phoneStateChanged(). Fixes aethersdr#2180
7eb018c to
60ee32a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
TransmitModel::setMonGainSb()updatesm_monGainSband emitscommandReadybut never emitsmicStateChanged(). A UI slider bound to monitor gain via the model signal won't repaint when the value is changed by MIDI controller, keyboard shortcut, or radio echo — until an unrelated event happens to trigger a redraw.Same class of gap as #2084 (VOX setters) and the
setMicLevelpart of #2180.Note:
setMicLevelwas fixed concurrently in PR #3234 (with a change guard). This PR addresses the remaining gap —setMonGainSb.Fix
Add
emit micStateChanged()after updatingm_monGainSb, consistent with how all other mic-state setters behave.Setter audit (per #2180)
setMicSelectionmicStateChanged()setMicLevelmicStateChanged()— fixed in #3234setSpeechProcessorEnablemicStateChanged()setSpeechProcessorLevelmicStateChanged()setMonGainSbsetMonGainCwphoneStateChanged()setMonPanCwphoneStateChanged()Fixes #2180