mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
* Hide bambu-specific calibration tab for non-bambu printers (#2197) * Hide Calibration tab only --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
@@ -882,17 +882,17 @@ void MainFrame::show_publish_button(bool show)
|
||||
|
||||
void MainFrame::show_calibration_button(bool show)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
bool shown = m_menubar->FindMenu(_L("Calibration")) != wxNOT_FOUND;
|
||||
if (shown == show)
|
||||
;
|
||||
else if (show)
|
||||
m_menubar->Insert(3, m_calib_menu, wxString::Format("&%s", _L("Calibration")));
|
||||
else
|
||||
m_menubar->Remove(3);
|
||||
#else
|
||||
topbar()->ShowCalibrationButton(show);
|
||||
#endif
|
||||
// #ifdef __APPLE__
|
||||
// bool shown = m_menubar->FindMenu(_L("Calibration")) != wxNOT_FOUND;
|
||||
// if (shown == show)
|
||||
// ;
|
||||
// else if (show)
|
||||
// m_menubar->Insert(3, m_calib_menu, wxString::Format("&%s", _L("Calibration")));
|
||||
// else
|
||||
// m_menubar->Remove(3);
|
||||
// #else
|
||||
// topbar()->ShowCalibrationButton(show);
|
||||
// #endif
|
||||
show = !show;
|
||||
auto shown2 = m_tabpanel->FindPage(m_calibration) != wxNOT_FOUND;
|
||||
if (shown2 == show)
|
||||
|
||||
Reference in New Issue
Block a user