mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
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:
parent
a2d24cd67f
commit
f36c22385b
1 changed files with 2 additions and 0 deletions
|
@ -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") = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue