extract settings from main

This commit is contained in:
Stewart Allen 2022-02-18 18:42:08 -05:00
commit 0e3074229a
5 changed files with 524 additions and 496 deletions

View file

@ -46,9 +46,7 @@ function prepareSlices(callback, scale = 1, offset = 0) {
}
}
// clear completion marks
complete = {};
functions.clear_progress();
platform.deselect();
hide.slider();
view.set_slice();
@ -406,7 +404,7 @@ function updateStackLabelState() {
}
}
api.function = {
const functions = api.function = {
slice: prepareSlices,
print: preparePreview,
prepare: preparePreview,