From e75a2f81e9c58de4f2c13c5671cecb97293f4bda Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Thu, 28 Mar 2024 23:02:20 +0800 Subject: [PATCH] Fix issue that print host and webui settings are not properly reset (#4734) Fix issue that print host and webui settings are not properly reset after switching from certain host type --- src/slic3r/GUI/PhysicalPrinterDialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp index 20ecc917a66..5e4e83ce2eb 100644 --- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp +++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp @@ -518,6 +518,7 @@ void PhysicalPrinterDialog::update(bool printer_change) current_host == L"https://app.obico.io" || current_host == "https://simplyprint.io") { temp->SetValue(wxString()); + m_config->opt_string("print_host") = ""; } } } @@ -526,6 +527,7 @@ void PhysicalPrinterDialog::update(bool printer_change) const auto current_host = temp->GetValue(); if (current_host == "https://simplyprint.io/panel") { temp->SetValue(wxString()); + m_config->opt_string("print_host_webui") = ""; } } }