Skip to content

Commit 0bcb244

Browse files
authored
Fix that segment stats in context menu did not show on first open (#8645)
* fix that segment stats in context menu did not show on first open sometimes * update changelog
1 parent 1c737d0 commit 0bcb244

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
4242
- Fixed a rare bug where download requests would terminate without sending the whole annotation. [#8624](https://github.com/scalableminds/webknossos/pull/8624)
4343
- Fixed that deletion of dataset would lead to an error. [#8639](https://github.com/scalableminds/webknossos/pull/8639)
4444
- Fixed a bug where merging annotations with large tree IDs could lead to an error. [#8643](https://github.com/scalableminds/webknossos/pull/8643)
45+
- Fixed that the segment stats were sometimes not displayed in the context menu. [#8645](https://github.com/scalableminds/webknossos/pull/8645)
4546

4647
### Removed
4748
- The old "Selective Segment Visibility" feature that allowed to only see the active and the hovered segment was removed. From now on the visibility of segments can be controlled with checkboxes in the segment list and with the "Hide unlisted segments" toggle in the layer settings. [#8546](https://github.com/scalableminds/webknossos/pull/8546)

frontend/javascripts/viewer/view/context_menu.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,12 @@ function ContextMenuInner() {
15991599
isLoadingVolumeAndBB,
16001600
// Update segment infos when opening the context menu, in case the annotation was saved since the context menu was last opened.
16011601
// Of course the info should also be updated when the menu is opened for another segment, or after the refresh button was pressed.
1602-
[contextMenuPosition, clickedSegmentOrMeshId, lastTimeSegmentInfoShouldBeFetched],
1602+
[
1603+
contextMenuPosition,
1604+
isSegmentIndexAvailable,
1605+
clickedSegmentOrMeshId,
1606+
lastTimeSegmentInfoShouldBeFetched,
1607+
],
16031608
);
16041609

16051610
let nodeContextMenuTree: Tree | null = null;

0 commit comments

Comments
 (0)