Error dialog on download failure.

This commit is contained in:
David Kocik 2023-01-16 16:17:20 +01:00
parent 21c8cefef2
commit e959fd0e58

View File

@ -177,6 +177,7 @@ void Downloader::on_error(wxCommandEvent& event)
BOOST_LOG_TRIVIAL(error) << "Download error: " << event.GetString();
NotificationManager* ntf_mngr = wxGetApp().notification_manager();
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)
{