Skip to content

Commit

Permalink
Fixed initialization sequence and labelling for fragments workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
porterbot committed Jul 26, 2023
1 parent e8a0f36 commit 028ae07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public void loadComplete(LoadProjectEvent event) {

TmModelManager.getInstance().setCurrentReviews(new TmReviewState());
String systemNeuron = ConsoleProperties.getInstance().getProperty("console.LVVHorta.tracersgroup").trim();
modelManager.getCurrentView().setFilter(false);
TmModelManager.getInstance().getSpatialIndexManager().initialize();
int nFragments = 0;
for (TmNeuronMetadata neuron : modelManager.getNeuronModel().getNeurons()) {
if (neuron.getOwnerKey().equals(systemNeuron)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,6 @@ protected void doStuff() throws Exception {
NeuronManager.getInstance().setFilterStrategy(neuronFilter);
}

TmModelManager.getInstance().getSpatialIndexManager().initialize();

// fireNeuronSpatialFilterUpdated(applyFilter, neuronFilter);

// Clear neuron selection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public void workspaceLoaded(LoadProjectEvent loadEvent) {
filteredAnnotationList.loadWorkspace(workspace);
wsNeuronList.loadWorkspace(workspace);
wsInfoPanel.loadWorkspace(workspace);
wsNeuronList.updateNeuronSpatialFilter(TmModelManager.getInstance().getCurrentWorkspace().isContainsFragments(),
TmModelManager.getInstance().getCurrentWorkspace().isContainsFragments()?"Enabled": "Disabled");
}

@Subscribe
Expand Down

0 comments on commit 028ae07

Please sign in to comment.