mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06: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:
parent
d6c4c4b46b
commit
d4e6b4fe47
2 changed files with 15 additions and 11 deletions
|
@ -882,17 +882,17 @@ void MainFrame::show_publish_button(bool show)
|
||||||
|
|
||||||
void MainFrame::show_calibration_button(bool show)
|
void MainFrame::show_calibration_button(bool show)
|
||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
// #ifdef __APPLE__
|
||||||
bool shown = m_menubar->FindMenu(_L("Calibration")) != wxNOT_FOUND;
|
// bool shown = m_menubar->FindMenu(_L("Calibration")) != wxNOT_FOUND;
|
||||||
if (shown == show)
|
// if (shown == show)
|
||||||
;
|
// ;
|
||||||
else if (show)
|
// else if (show)
|
||||||
m_menubar->Insert(3, m_calib_menu, wxString::Format("&%s", _L("Calibration")));
|
// m_menubar->Insert(3, m_calib_menu, wxString::Format("&%s", _L("Calibration")));
|
||||||
else
|
// else
|
||||||
m_menubar->Remove(3);
|
// m_menubar->Remove(3);
|
||||||
#else
|
// #else
|
||||||
topbar()->ShowCalibrationButton(show);
|
// topbar()->ShowCalibrationButton(show);
|
||||||
#endif
|
// #endif
|
||||||
show = !show;
|
show = !show;
|
||||||
auto shown2 = m_tabpanel->FindPage(m_calibration) != wxNOT_FOUND;
|
auto shown2 = m_tabpanel->FindPage(m_calibration) != wxNOT_FOUND;
|
||||||
if (shown2 == show)
|
if (shown2 == show)
|
||||||
|
|
|
@ -1160,6 +1160,10 @@ void Sidebar::update_presets(Preset::Type preset_type)
|
||||||
printer_tab->update();
|
printer_tab->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isBBL = preset_bundle.is_bbl_vendor();
|
||||||
|
wxGetApp().mainframe->show_calibration_button(!isBBL);
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default: break;
|
default: break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue