Merge branch 'dk_dwnldr_merge'

This commit is contained in:
David Kocik 2023-01-16 16:52:39 +01:00
commit 511408841a
2 changed files with 2 additions and 1 deletions

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)
{

View file

@ -129,7 +129,7 @@ void FileGet::priv::get_perform()
if (m_written == 0)
file = fopen(temp_path_wstring.c_str(), "wb");
else
file = fopen(temp_path_wstring.c_str(), "a");
file = fopen(temp_path_wstring.c_str(), "ab");
assert(file != NULL);