mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Fix build
This commit is contained in:
parent
93f4c2bd4d
commit
4f496dd3b4
1 changed files with 4 additions and 2 deletions
|
@ -212,6 +212,7 @@ wxString hide_id_middle_string(wxString const &str, size_t offset = 0, size_t le
|
||||||
|
|
||||||
wxString hide_passwd(wxString url, std::vector<wxString> const &passwords)
|
wxString hide_passwd(wxString url, std::vector<wxString> const &passwords)
|
||||||
{
|
{
|
||||||
|
#if BBL_RELEASE_TO_PUBLIC
|
||||||
for (auto &p : passwords) {
|
for (auto &p : passwords) {
|
||||||
auto i = url.find(p);
|
auto i = url.find(p);
|
||||||
if (i == wxString::npos)
|
if (i == wxString::npos)
|
||||||
|
@ -228,6 +229,7 @@ wxString hide_passwd(wxString url, std::vector<wxString> const &passwords)
|
||||||
else if (j == url.length() || url[j] == '@' || url[j] == '&')
|
else if (j == url.length() || url[j] == '@' || url[j] == '&')
|
||||||
url.replace(i, l, l, wxUniChar('*'));
|
url.replace(i, l, l, wxUniChar('*'));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -312,8 +314,8 @@ void MediaPlayCtrl::Play()
|
||||||
m_disable_lan = false;
|
m_disable_lan = false;
|
||||||
m_failed_code = 0;
|
m_failed_code = 0;
|
||||||
m_last_state = MEDIASTATE_INITIALIZING;
|
m_last_state = MEDIASTATE_INITIALIZING;
|
||||||
|
|
||||||
if (!m_remote_support) { // not support tutk
|
if (!m_remote_proto) { // not support tutk
|
||||||
m_failed_code = -1;
|
m_failed_code = -1;
|
||||||
m_url = "bambu:///local/";
|
m_url = "bambu:///local/";
|
||||||
Stop(_L("Please enter the IP of printer to connect."));
|
Stop(_L("Please enter the IP of printer to connect."));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue