fix an issue that thirdparty won't able to send print

This commit is contained in:
SoftFever 2022-12-16 21:39:52 +08:00
parent 45a00489ec
commit e0335e73cf

View file

@ -1265,10 +1265,6 @@ bool MainFrame::can_send_gcode() const
{ {
if (m_plater && !m_plater->model().objects.empty()) if (m_plater && !m_plater->model().objects.empty())
{ {
// BBL printer presets
if (!wxGetApp().preset_bundle->printers.get_edited_preset().is_custom_defined())
return false;
auto cfg = wxGetApp().preset_bundle->printers.get_edited_preset().config; auto cfg = wxGetApp().preset_bundle->printers.get_edited_preset().config;
if (const auto *print_host_opt = cfg.option<ConfigOptionString>("print_host"); print_host_opt) if (const auto *print_host_opt = cfg.option<ConfigOptionString>("print_host"); print_host_opt)
return !print_host_opt->value.empty(); return !print_host_opt->value.empty();