Refresh radio model label when info arrives#2244
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the MainWindow status bar to ensure the connected radio’s model label refreshes when radio info arrives asynchronously after the initial connection UI update.
Changes:
- Refresh the radio model label on
RadioModel::infoChangedwhen a non-empty model becomes available. - Update the related inline comment to reflect that multiple labels can be refreshed on late-arriving radio info.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CI failure analysis for
|
ten9876
left a comment
There was a problem hiding this comment.
Trivial +3/-1, mirrors existing pattern exactly. Approving.
Summary
Fixes a status bar bug where the radio model number could be missing above the version number after connecting.
onConnectionStateChanged()populates the status bar immediately, but radio info such asmodelcan arrive later throughRadioModel::infoChanged. The version label already refreshed oninfoChanged; this change refreshes the model label on the same signal when a non-empty model is available.Testing
/private/tmp/aethersdr-build-radio-model-statuscmake --build /private/tmp/aethersdr-build-radio-model-status