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

Change-Id: Ib720f7572255f4ac506f421ccf5256ed2e3c68d1
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2023-07-07 17:52:43 +08:00
1 parent 1be8ea44e5
commit 1c0ccc5f3d
2 files changed
+4 -6

No files matched your search

+1 -1
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);