make first part of slicing cancellable
This commit is contained in:
parent
217129a4fd
commit
26bf2baf5e
6 changed files with 55 additions and 24 deletions
|
|
@ -577,7 +577,12 @@ var gs_kiri_widget = exports;
|
|||
|
||||
var catchupdate = function(progress, message) {
|
||||
onupdate(progress, message);
|
||||
return widget.cancel ? 42 : 0;
|
||||
if (widget.cancel) {
|
||||
ondone("canceled");
|
||||
return 42;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
var driver = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue