move file export to workers
This commit is contained in:
parent
538b6401c6
commit
8da355efbc
2 changed files with 59 additions and 39 deletions
|
|
@ -40,8 +40,10 @@ let gs_kiri_export = exports;
|
|||
if (currentPrint) {
|
||||
let lines = [];
|
||||
currentPrint.export(true, function(line) {
|
||||
lines.push(line);
|
||||
if (line.progress) API.show.progress(line.progress, "exporting");
|
||||
if (line.data) lines.push(line.data);
|
||||
}, function(done) {
|
||||
API.show.progress(0);
|
||||
currentPrint.sla = { lines, done, API };
|
||||
KIRI.driver.SLA.printDownload(currentPrint);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue