File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -896,6 +896,7 @@ LDPC | Low Density Parity Check Codes - a family of powerful FEC codes
896
896
* Better handle high sample rate audio devices and those with >2 channels. (PR #668 )
897
897
* Fix issue preventing errors from being displayed for issues involving the FreeDV->Speaker sound device. (PR #668 )
898
898
* Fix issue resulting in incorrect audio device usage after validation failure if no valid default exists. (PR #668 )
899
+ * Fix bug where PTT button background color doesn't change when toggling PTT via space bar. (PR #669 )
899
900
2 . Enhancements:
900
901
* Add Frequency column to RX drop-down. (PR #663 )
901
902
* Update tooltip for the free form text field to indicate that it's not covered by FEC. (PR #665 )
Original file line number Diff line number Diff line change @@ -794,13 +794,18 @@ int MainApp::FilterEvent(wxEvent& event)
794
794
if (frame->m_RxRunning && (mainWindowActive || reporterActiveButNotUpdatingTextMessage) &&
795
795
wxGetApp ().appConfiguration .enableSpaceBarForPTT && !frame->isReceiveOnly ()) {
796
796
797
- // space bar controls rx /rx if keyer not running
797
+ // space bar controls tx /rx if keyer not running
798
798
if (frame->vk_state == VK_IDLE) {
799
799
if (frame->m_btnTogPTT ->GetValue ())
800
800
frame->m_btnTogPTT ->SetValue (false );
801
801
else
802
802
frame->m_btnTogPTT ->SetValue (true );
803
803
804
+ // Update background color of button here because when toggling PTT via keyboard,
805
+ // the background color for some reason doesn't update inside togglePTT().
806
+ frame->m_btnTogPTT ->SetBackgroundColour (frame->m_btnTogPTT ->GetValue () ? *wxRED : wxNullColour);
807
+
808
+ // Actually toggle PTT.
804
809
frame->togglePTT ();
805
810
}
806
811
else // space bar stops keyer
You can’t perform that action at this time.
0 commit comments