mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 07:11:12 -06:00
add more logs for plugin download
Change-Id: I7f20a5388a1f4227181864930bde5922fd6d65e8
This commit is contained in:
parent
8300c386e0
commit
b4c7d5b65b
2 changed files with 24 additions and 17 deletions
|
@ -46,12 +46,12 @@ void UpgradeNetworkJob::process()
|
|||
{
|
||||
// downloading
|
||||
int result = 0;
|
||||
|
||||
|
||||
AppConfig* app_config = wxGetApp().app_config;
|
||||
if (!app_config)
|
||||
return;
|
||||
|
||||
BOOST_LOG_TRIVIAL(info) << "[download_plugin]: enter";
|
||||
BOOST_LOG_TRIVIAL(info) << "[UpgradeNetworkJob process]: enter";
|
||||
|
||||
// get temp path
|
||||
fs::path target_file_path = (fs::temp_directory_path() / "network_plugin.zip");
|
||||
|
@ -74,7 +74,7 @@ void UpgradeNetworkJob::process()
|
|||
}
|
||||
curr_percent = percent;
|
||||
}, cancel_fn);
|
||||
|
||||
|
||||
if (was_canceled()) {
|
||||
update_status(0, _L("Cancelled"));
|
||||
wxCommandEvent event(wxEVT_CLOSE_WINDOW);
|
||||
|
@ -118,6 +118,7 @@ void UpgradeNetworkJob::process()
|
|||
wxCommandEvent event(EVT_UPGRADE_NETWORK_SUCCESS);
|
||||
event.SetEventObject(m_event_handle);
|
||||
wxPostEvent(m_event_handle, event);
|
||||
BOOST_LOG_TRIVIAL(info) << "[UpgradeNetworkJob process]: exit";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue