mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
handle url
This commit is contained in:
parent
bd672054cc
commit
96810ea994
1 changed files with 9 additions and 1 deletions
|
@ -928,7 +928,15 @@ void Sidebar::update_all_preset_comboboxes()
|
||||||
connection_btn->Show();
|
connection_btn->Show();
|
||||||
ams_btn->Hide();
|
ams_btn->Hide();
|
||||||
p_mainframe->set_print_button_to_default(MainFrame::PrintSelectType::eSendGcode);
|
p_mainframe->set_print_button_to_default(MainFrame::PrintSelectType::eSendGcode);
|
||||||
p_mainframe->load_printer_url(wxString::Format("http://%s",preset_bundle.printers.get_edited_preset().config.opt_string("print_host")));
|
wxString host_url = preset_bundle.printers.get_edited_preset().config.opt_string("print_host");
|
||||||
|
if(!host_url.empty())
|
||||||
|
{
|
||||||
|
if(!host_url.Lower().starts_with("http"))
|
||||||
|
host_url = wxString::Format("http://%s",host_url);
|
||||||
|
|
||||||
|
p_mainframe->load_printer_url(host_url);
|
||||||
|
}
|
||||||
|
|
||||||
m_bed_type_list->SelectAndNotify(btPEI);
|
m_bed_type_list->SelectAndNotify(btPEI);
|
||||||
m_bed_type_list->Disable();
|
m_bed_type_list->Disable();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue