FIX: "Not supported on the current printer version"

Change-Id: Ib01fde05352d8f0dd91690cc941d14d983f12f9a
This commit is contained in:
chunmao.guo 2023-06-05 11:21:47 +08:00 committed by Lane.Wei
parent 152df78310
commit c14599a140
2 changed files with 6 additions and 1 deletions

View file

@ -413,6 +413,11 @@ void MediaFilePanel::fetchUrl(boost::weak_ptr<PrinterFileSystem> wfs)
return;
}
m_waiting_enable = false;
if (!m_local_support && !m_remote_support) {
m_image_grid->SetStatus(m_bmp_failed, _L("Initialize failed (Not supported on the current printer version)!"));
fs->SetUrl("0");
return;
}
if ((m_lan_mode || !m_remote_support) && m_local_support && !m_lan_ip.empty()) {
std::string url = "bambu:///local/" + m_lan_ip + ".?port=6000&user=" + m_lan_user + "&passwd=" + m_lan_passwd;
fs->SetUrl(url);

View file

@ -194,7 +194,7 @@ void MediaPlayCtrl::Play()
if (!m_remote_support) { // not support tutk
Stop(m_lan_ip.empty()
? _L("Initialize failed (Missing LAN ip of printer)!")
: _L("Initialize failed (Not supported by printer)!"));
: _L("Initialize failed (Not supported on the current printer version)!"));
return;
}