1081 ui_call_mainthread(uithr_download_update_progress, download); |
1091 ui_call_mainthread(uithr_download_update_progress, download); |
1082 |
1092 |
1083 ui_threadpool_job(download->queue, download->ui, qthr_download_resource, file, NULL, NULL); |
1093 ui_threadpool_job(download->queue, download->ui, qthr_download_resource, file, NULL, NULL); |
1084 } |
1094 } |
1085 } |
1095 } |
|
1096 |
|
1097 ui_threadpool_job(download->queue, download->ui, qthr_download_finished, download, uithr_download_finished, download); |
1086 |
1098 |
1087 cxListDestroy(stack); |
1099 cxListDestroy(stack); |
1088 |
1100 |
1089 return 0; |
1101 return 0; |
1090 } |
1102 } |
1143 ui_set(download->label_bottom_left, ""); |
1155 ui_set(download->label_bottom_left, ""); |
1144 ui_set(download->label_bottom_right, ""); |
1156 ui_set(download->label_bottom_right, ""); |
1145 ui_set(download->progress, 0); |
1157 ui_set(download->progress, 0); |
1146 |
1158 |
1147 ui_show(dialog); |
1159 ui_show(dialog); |
|
1160 |
|
1161 ui_object_ref(dialog); |
1148 |
1162 |
1149 // start upload and stat threads |
1163 // start upload and stat threads |
1150 ui_job(ui, jobthr_download_scan, download, uithr_download_scan_finished, download); |
1164 ui_job(ui, jobthr_download_scan, download, uithr_download_scan_finished, download); |
1151 } |
1165 } |
1152 |
1166 |