Make sure focus isn't on the Report Frequency text box immediately after starting.

ms-lose-focus-reporting
Mooneer Salem 2023-06-10 19:39:49 -07:00
parent 06805b4656
commit 318bc2b1bd
3 changed files with 9 additions and 1 deletions

View File

@ -34,6 +34,8 @@ set_target_properties(hamlib PROPERTIES
IMPORTED_IMPLIB "${CMAKE_BINARY_DIR}/external/dist/lib/libhamlib${CMAKE_IMPORT_LIBRARY_SUFFIX}"
)
message(STATUS "hamlib path" "${CMAKE_BINARY_DIR}/external/dist/lib/libhamlib${CMAKE_IMPORT_LIBRARY_SUFFIX}")
add_dependencies(hamlib build_hamlib)
include_directories(${CMAKE_BINARY_DIR}/external/dist/include)

View File

@ -13,7 +13,7 @@ endif()
include(ExternalProject)
ExternalProject_Add(speex
URL https://gitlab.xiph.org/xiph/speexdsp/-/archive/master/speexdsp-master.tar.gz
URL https://github.com/xiph/speexdsp/archive/refs/heads/master.zip
BUILD_IN_SOURCE 1
INSTALL_DIR external/dist
PATCH_COMMAND ./autogen.sh

View File

@ -2303,6 +2303,12 @@ void MainFrame::OnTogBtnOnOff(wxCommandEvent& event)
}
m_togBtnOnOff->SetValue(m_RxRunning);
m_togBtnOnOff->Enable(true);
// On some systems the Report Frequency box ends up getting
// focus after clicking on Start. This causes the frequency
// to never update. To avoid this, we force focus to be elsewhere
// in the window.
m_auiNbookCtrl->SetFocus();
});
});
onOffExec.detach();