avoid worker restart unless it's slicing

This commit is contained in:
Stewart Allen 2018-03-14 17:47:40 -04:00
commit 41d30cef0c
3 changed files with 8 additions and 2 deletions

View file

@ -2556,7 +2556,7 @@ self.kiri.license = exports.LICENSE;
// hide all dialogs
hideDialog();
// cancel slicing
KIRI.work.restart();
if (KIRI.work.isSlicing()) KIRI.work.restart();
break;
}
return false;