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
This commit is contained in:
Noisyfox 2024-03-28 23:02:20 +08:00 committed by GitHub
parent a2d24cd67f
commit f36c22385b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -518,6 +518,7 @@ void PhysicalPrinterDialog::update(bool printer_change)
current_host == L"https://app.obico.io" || current_host == L"https://app.obico.io" ||
current_host == "https://simplyprint.io") { current_host == "https://simplyprint.io") {
temp->SetValue(wxString()); 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(); const auto current_host = temp->GetValue();
if (current_host == "https://simplyprint.io/panel") { if (current_host == "https://simplyprint.io/panel") {
temp->SetValue(wxString()); temp->SetValue(wxString());
m_config->opt_string("print_host_webui") = "";
} }
} }
} }