From 5fb4188a194a6aa0e9cbd918c918608c74d3c7a9 Mon Sep 17 00:00:00 2001 From: sunsets <845944018@qq.com> Date: Thu, 26 Oct 2023 14:30:25 +0800 Subject: [PATCH] fix device bug --- src/slic3r/GUI/MainFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 8720e46..b09ff01 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -2113,7 +2113,8 @@ void MainFrame::select_tab(size_t tab/* = size_t(-1)*/) PresetBundle & preset_bundle = *wxGetApp().preset_bundle; const PhysicalPrinter &pp = preset_bundle.physical_printers.get_selected_printer(); wxString host = pp.config.opt_string("print_host"); - if (host.empty()) + if (host.empty()) { + tem_host = ""; host = wxString::Format("file://%s/web/qidi/missing_connection.html", from_u8(resources_dir())); else { if (!host.Lower().starts_with("http")) @@ -2127,6 +2128,7 @@ void MainFrame::select_tab(size_t tab/* = size_t(-1)*/) } } else { + tem_host = ""; wxString url = wxString::Format("file://%s/web/qidi/missing_connection.html", from_u8(resources_dir())); m_printer_view->load_url(url); }