mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-26 11:32:13 -06:00
fix an issue that print_host value was not retrieved.
This commit is contained in:
parent
ef1e0590c6
commit
52f68227a4
1 changed files with 1 additions and 1 deletions
|
@ -1115,7 +1115,7 @@ bool MainFrame::can_send_gcode() const
|
||||||
{
|
{
|
||||||
if (m_plater && !m_plater->model().objects.empty())
|
if (m_plater && !m_plater->model().objects.empty())
|
||||||
{
|
{
|
||||||
auto cfg = wxGetApp().preset_bundle->printers.get_selected_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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue