FIX: file proto error message

Change-Id: I2c4117961c615e424780fb3830441e6a93c50bcc
Jira: none
This commit is contained in:
chunmao.guo 2024-02-18 17:04:11 +08:00 committed by Lane.Wei
parent 1162fa840e
commit 41d58af948
1 changed files with 12 additions and 7 deletions

View File

@ -438,7 +438,7 @@ void MediaFilePanel::fetchUrl(boost::weak_ptr<PrinterFileSystem> wfs)
m_waiting_enable = false;
if (!m_local_support && !m_remote_support) {
m_waiting_support = true;
m_image_grid->SetStatus(m_bmp_failed, _L("Please update the printer firmware and try again."));
m_image_grid->SetStatus(m_bmp_failed, _L("Browsing file in SD card is not supported in current firmware. Please update the printer firmware."));
fs->SetUrl("0");
return;
}
@ -459,14 +459,19 @@ void MediaFilePanel::fetchUrl(boost::weak_ptr<PrinterFileSystem> wfs)
fs->SetUrl(url);
return;
}
if (m_lan_mode) {
m_image_grid->SetStatus(m_bmp_failed, _L("Problem occured. Please update the printer firmware and try again."));
fs->SetUrl("0");
return;
}
if (!m_remote_support && m_local_support) { // not support tutk
m_image_grid->SetStatus(m_bmp_failed, _L("Please enter the IP of printer to connect."));
fs->SetUrl("1");
fs->SetUrl("0");
fs.reset();
if (wxGetApp().show_modal_ip_address_enter_dialog(_L("LAN Connection Failed (Failed to view sdcard)"))) {
if (auto fs = wfs.lock())
fs->Retry();
}
return;
}
if (m_lan_mode) {
m_image_grid->SetStatus(m_bmp_failed, _L("Browsing file in SD card is not supported in LAN Only Mode."));
fs->SetUrl("0");
return;
}
NetworkAgent *agent = wxGetApp().getAgent();