mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
Omit BBL specific gcodes for other machines
This commit is contained in:
parent
bab4f443e2
commit
b7572b9004
4 changed files with 134 additions and 49 deletions
|
@ -183,6 +183,13 @@ std::string BackgroundSlicingProcess::output_filepath_for_project(const boost::f
|
|||
void BackgroundSlicingProcess::process_fff()
|
||||
{
|
||||
assert(m_print == m_fff_print);
|
||||
PresetBundle &preset_bundle = *wxGetApp().preset_bundle;
|
||||
|
||||
m_fff_print->is_BBL_printer() =
|
||||
preset_bundle.printers.get_edited_preset().is_bbl_vendor_preset(
|
||||
&preset_bundle);
|
||||
|
||||
|
||||
//BBS: add the logic to process from an existed gcode file
|
||||
if (m_print->finished()) {
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(" %1%: skip slicing, to process previous gcode file")%__LINE__;
|
||||
|
|
|
@ -918,10 +918,23 @@ void Sidebar::update_all_preset_comboboxes()
|
|||
ams_btn->Show();
|
||||
//update print button default value for bbl or third-party printer
|
||||
wxGetApp().mainframe->set_print_button_to_default(MainFrame::PrintSelectType::ePrintPlate);
|
||||
MonitorPanel *curr_monitor = wxGetApp().mainframe->m_monitor;
|
||||
if(wxGetApp().mainframe->m_tabpanel->GetPage(3) !=
|
||||
curr_monitor){
|
||||
wxGetApp().mainframe->m_tabpanel->InsertPage(3,
|
||||
curr_monitor, _L("Device"),
|
||||
std::string("tab_monitor_active"),
|
||||
std::string("tab_monitor_active"));
|
||||
}
|
||||
|
||||
} else {
|
||||
connection_btn->Show();
|
||||
ams_btn->Hide();
|
||||
wxGetApp().mainframe->set_print_button_to_default(MainFrame::PrintSelectType::eSendGcode);
|
||||
MonitorPanel *curr_monitor = wxGetApp().mainframe->m_monitor;
|
||||
if (wxGetApp().mainframe->m_tabpanel->GetPage(3) == curr_monitor) {
|
||||
wxGetApp().mainframe->m_tabpanel->RemovePage(3);
|
||||
}
|
||||
}
|
||||
|
||||
// Update the print choosers to only contain the compatible presets, update the dirty flags.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue