Add support for PrusaLink webview

This commit is contained in:
SoftFever 2023-08-30 23:38:33 +08:00
parent 4564945b48
commit 80082464cb
6 changed files with 71 additions and 20 deletions

View file

@ -1067,7 +1067,10 @@ void Sidebar::update_all_preset_comboboxes()
if(!url.Lower().starts_with("http"))
url = wxString::Format("http://%s",url);
p_mainframe->load_printer_url(url);
wxString apikey;
if (cfg.has("printhost_apikey"))
apikey = cfg.opt_string("printhost_apikey");
p_mainframe->load_printer_url(url, apikey);
}
m_bed_type_list->SelectAndNotify(btPEI-1);