Do not show Physical Printer Webview tab for Connect.

This commit is contained in:
David Kocik 2024-04-23 14:24:14 +02:00
parent 7bc73be0c9
commit 5d293dc9fc

View File

@ -777,7 +777,7 @@ void MainFrame::remove_connect_webview_tab()
void MainFrame::show_printer_webview_tab(DynamicPrintConfig* dpc)
{
// if physical printer is selected
if (dpc) {
if (dpc && dpc->option<ConfigOptionEnum<PrintHostType>>("host_type")->value != htPrusaConnect) {
std::string url = dpc->opt_string("print_host");
if (url.find("http://") != 0 && url.find("https://") != 0) {