Skip to content

Commit

Permalink
Revert "Revert "Revert "Hide bambu-specific calibration tab for non-b…
Browse files Browse the repository at this point in the history
…ambu printers (SoftFever#2197) (SoftFever#2259)"""

This reverts commit 2d4944b.
  • Loading branch information
igiannakas committed Oct 19, 2023
1 parent 6ac86bd commit 4ba14c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
22 changes: 11 additions & 11 deletions src/slic3r/GUI/MainFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 0 additions & 4 deletions src/slic3r/GUI/Plater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1160,10 +1160,6 @@ void Sidebar::update_presets(Preset::Type preset_type)
printer_tab->update();
}

bool isBBL = preset_bundle.is_bbl_vendor();
wxGetApp().mainframe->show_calibration_button(!isBBL);

break;
}

default: break;
Expand Down

0 comments on commit 4ba14c9

Please sign in to comment.