mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 12:25:57 +08:00
Error dialog on download failure.
This commit is contained in:
parent
21c8cefef2
commit
e959fd0e58
@ -177,6 +177,7 @@ void Downloader::on_error(wxCommandEvent& event)
|
|||||||
BOOST_LOG_TRIVIAL(error) << "Download error: " << event.GetString();
|
BOOST_LOG_TRIVIAL(error) << "Download error: " << event.GetString();
|
||||||
NotificationManager* ntf_mngr = wxGetApp().notification_manager();
|
NotificationManager* ntf_mngr = wxGetApp().notification_manager();
|
||||||
ntf_mngr->set_download_URL_error(id, boost::nowide::narrow(event.GetString()));
|
ntf_mngr->set_download_URL_error(id, boost::nowide::narrow(event.GetString()));
|
||||||
|
show_error(nullptr, format_wxstr(L"%1%\n%2%", _L("The download has failed:"), event.GetString()));
|
||||||
}
|
}
|
||||||
void Downloader::on_complete(wxCommandEvent& event)
|
void Downloader::on_complete(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user