mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-11 21:11:59 +00:00
FIX: [STUDIO-3736] show download failed dialog & cancel task
Change-Id: I25830b29ffaaced26fcee8290ccfcce590e3963a
This commit is contained in:
@@ -313,6 +313,9 @@ void MediaFilePanel::SetMachineObject(MachineObject* obj)
|
||||
return;
|
||||
|
||||
int result = e.GetExtraLong();
|
||||
if (result > 1 && !e.GetString().IsEmpty())
|
||||
MessageDialog(this, e.GetString(), _L("Download failed"), wxOK | wxICON_ERROR).ShowModal();
|
||||
|
||||
NetworkAgent* agent = wxGetApp().getAgent();
|
||||
if (result > 1 || result == 0) {
|
||||
json j;
|
||||
|
||||
Reference in New Issue
Block a user