diff --git a/src/datasource/graphene/frontend.ts b/src/datasource/graphene/frontend.ts index 24f90734d..87039cd4f 100644 --- a/src/datasource/graphene/frontend.ts +++ b/src/datasource/graphene/frontend.ts @@ -2837,12 +2837,14 @@ class MulticutSegmentsTool extends LayerTool { const priorBaseSegmentHighlighting = displayState.baseSegmentHighlighting.value; const priorHighlightColor = displayState.highlightColor.value; + const priorHideSegmentZero = displayState.hideSegmentZero.value; activation.bindInputEventMap(MULTICUT_SEGMENTS_INPUT_EVENT_MAP); activation.registerDisposer(() => { resetMulticutDisplay(); displayState.baseSegmentHighlighting.value = priorBaseSegmentHighlighting; displayState.highlightColor.value = priorHighlightColor; + displayState.hideSegmentZero.value = priorHideSegmentZero; }); const resetMulticutDisplay = () => { resetTemporaryVisibleSegmentsState(segmentationGroupState); @@ -2863,6 +2865,7 @@ class MulticutSegmentsTool extends LayerTool { displayState.highlightColor.value = multicutState.blueGroup.value ? BLUE_COLOR_HIGHTLIGHT : RED_COLOR_HIGHLIGHT; + displayState.hideSegmentZero.value = false; segmentsState.useTemporaryVisibleSegments.value = true; segmentsState.useTemporarySegmentEquivalences.value = true; // add focus segment and red/blue segments