FIX: [STUDIO-3294] show/hide thirdparty calibrate button

Change-Id: Ib720f7572255f4ac506f421ccf5256ed2e3c68d1
This commit is contained in:
chunmao.guo 2023-06-27 17:11:53 +08:00 committed by Lane.Wei
parent 1be8ea44e5
commit 1c0ccc5f3d
2 changed files with 4 additions and 6 deletions

View file

@ -871,7 +871,7 @@ void MainFrame::show_publish_button(bool show)
void MainFrame::show_calibration_button(bool show)
{
#ifdef __APPLE__
bool shown = m_menubar->FindMenu(_L("Calibration"));
bool shown = m_menubar->FindMenu(_L("Calibration")) != wxNOT_FOUND;
if (shown == show) return;
if (show) m_menubar->Insert(3, m_calib_menu, wxString::Format("&%s", _L("Calibration")));
else m_menubar->Remove(3);