Skip to content

Commit

Permalink
Improve state saving.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Nov 12, 2024
1 parent 2237619 commit 60eb997
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/components/ScaffoldTreeControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ export default {
isRegion: true,
};
this.addTreeItem(data.children, childRegionItem, region);
//Special case for helper region
if (path === "/_helper") {
this.$nextTick(() => {
this.$refs.treeControls.$refs.regionTree.setChecked(childRegionItem.id, false);
});
}
}
_paths.shift();
return this.findOrCreateRegion(childRegionItem, _paths, path);
Expand Down
2 changes: 1 addition & 1 deletion src/components/ScaffoldVuer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,6 @@ export default {
},
setURLFinishCallback: function (options) {
return () => {
this.restoreSettings(options);
this.localAnnotationsList.length = 0;
this.updateSettingsfromScene();
this.$module.updateTime(0.01);
Expand All @@ -2168,6 +2167,7 @@ export default {
const {centre, size} = this.$module.getCentreAndSize();
this.boundingDims.centre = centre;
this.boundingDims.size = size;
this.$nextTick(() => this.restoreSettings(options) );
this.isReady = true;
};
},
Expand Down

0 comments on commit 60eb997

Please sign in to comment.