mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-14 20:33:30 +01:00
fix project loading
This commit is contained in:
parent
5135d6bce8
commit
fa672d92bb
2 changed files with 5 additions and 2 deletions
|
|
@ -18,6 +18,9 @@ export function activate({streams, services}) {
|
|||
console.log("project loaded, took: " + ((onLoadTime - startTime) / 1000).toFixed(2) + ' sec');
|
||||
}
|
||||
},
|
||||
declareAppReady: () => streams.lifecycle.appReady.value = true
|
||||
declareAppReady: () => {
|
||||
streams.lifecycle.appReady.value = true
|
||||
services.lifecycle.loadProjectRequest();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ export function activate(ctx) {
|
|||
services.appTabs.show(face.id, 'Sketch ' + face.id, 'sketcher.html#' + sketchURL);
|
||||
}
|
||||
|
||||
streams.craft.modifications.attach(updateAllSketches);
|
||||
streams.craft.models.attach(updateAllSketches);
|
||||
|
||||
services.sketcher = {
|
||||
sketchFace, sketchFace2D, updateAllSketches, getAllSketches, readSketch, inPlaceEditor
|
||||
|
|
|
|||
Loading…
Reference in a new issue