Merge branch 'ms-ui-sideband' into ms-pskreporter-improvements
commit
66ffcfe08f
|
@ -262,6 +262,7 @@ void Hamlib::enable_mode_detection(wxStaticText* statusBox, wxTextCtrl* freqBox,
|
|||
{
|
||||
m_modeBox->SetLabel(wxT("unk"));
|
||||
m_modeBox->Enable(false);
|
||||
m_modeBox->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
|
||||
m_modeBox = NULL;
|
||||
}
|
||||
else
|
||||
|
@ -295,6 +296,7 @@ void Hamlib::disable_mode_detection()
|
|||
// Disable control.
|
||||
m_modeBox->SetLabel(wxT("unk"));
|
||||
m_modeBox->Enable(false);
|
||||
m_modeBox->SetForegroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT));
|
||||
m_modeBox = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -418,7 +418,8 @@ void MainFrame::togglePTT(void) {
|
|||
Hamlib *hamlib = wxGetApp().m_hamlib;
|
||||
wxString hamlibError;
|
||||
if (wxGetApp().m_boolHamlibUseForPTT && hamlib != NULL) {
|
||||
if (hamlib->ptt(g_tx, hamlibError) == false) {
|
||||
// Update mode display on the bottom of the main UI.
|
||||
if (hamlib->update_frequency_and_mode() != 0 || hamlib->ptt(g_tx, hamlibError) == false) {
|
||||
wxMessageBox(wxString("Hamlib PTT Error: ") + hamlibError, wxT("Error"), wxOK | wxICON_ERROR, this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue