You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a couple lines of code to suppress the opening of the phrasebox's dropdown list when exiting free translation mode, and also added the same two lines to suppress the dropdown list when exiting the KB Editor and Choose Translation dialogs.
Removed BEW's test code that intended to do the same job but was unsuccessful.
GetLayout()->PlaceBox(); // might not be needed? No it is needed - otherwise it rebuids list on
15970
15970
// where I move phrasebox too & adds old locations meanings to the list there. Ouch.
15971
-
15972
15971
// I didn't notice the next line, that clobbers the boolean too early - so is probably why I
15973
15972
// got the error. Commenting it out should suffice
15974
15973
//pApp->m_bTypedNewAdaptationInChooseTranslation = FALSE; // gotta restore initialized value before leaving here
15975
15974
15975
+
pApp->m_pTargetBox->CloseDropDown(); // whm 16July2024 added to suppress the opening of the dropdown list on exit from free trans mode
15976
+
pApp->m_bChooseTransInitializePopup = FALSE; // whm 16July2024 added to suppress the opening of the dropdown list on exit from free trans mode
15977
+
15976
15978
#if defined (_DEBUG)
15977
15979
wxLogDebug(_T("view, OnButtonChooseTranslation, line %d returning, at end simpler code block, pApp->m_bTypedNewAdaptationInChooseTranslation = %d"), __LINE__,
// TODO: Determine if there really is a need for the PlaceBox() call here within the OnButtonChooseTranslation()
16055
16057
// handler.
16056
-
pApp->m_pTargetBox->m_Translation.Empty(); // If the PlaceBox() call can be removed, this can go back into Layout's PlaceBox() after the PopulateDropDownList() call
16058
+
16059
+
pApp->m_pTargetBox->CloseDropDown(); // whm 16July2024 added to suppress the opening of the dropdown list on exit from free trans mode
16060
+
pApp->m_bChooseTransInitializePopup = FALSE; // whm 16July2024 added to suppress the opening of the dropdown list on exit from free trans mode
16061
+
16062
+
pApp->m_pTargetBox->m_Translation.Empty(); // If the PlaceBox() call can be removed, this can go back into Layout's PlaceBox() after the PopulateDropDownList() call
16057
16063
#if defined (_DEBUG)
16058
16064
wxLogDebug(_T("view, OnButtonChooseTranslation, line %d End legacy code block, pApp->m_bTypedNewAdaptationInChooseTranslation = %d"), __LINE__,
0 commit comments