mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-16 12:45:54 +08:00
Merge branch 'dk_dwnldr_merge'
This commit is contained in:
commit
511408841a
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ void FileGet::priv::get_perform()
|
|||||||
if (m_written == 0)
|
if (m_written == 0)
|
||||||
file = fopen(temp_path_wstring.c_str(), "wb");
|
file = fopen(temp_path_wstring.c_str(), "wb");
|
||||||
else
|
else
|
||||||
file = fopen(temp_path_wstring.c_str(), "a");
|
file = fopen(temp_path_wstring.c_str(), "ab");
|
||||||
|
|
||||||
assert(file != NULL);
|
assert(file != NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user