Skip to content

Commit cae7af3

Browse files
committed
Remove redundant code, add comment
1 parent 73ed175 commit cae7af3

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

packages/base/src/3dview/mainview.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,6 +1730,7 @@ export class MainView extends React.Component<IProps, IStates> {
17301730
}
17311731
}
17321732
if (change.key === 'measurement') {
1733+
// Update the measurement state when the measurement tool is toggled.
17331734
const measurementEnabled = change.newValue as boolean | undefined;
17341735

17351736
if (measurementEnabled !== undefined) {

packages/base/src/commands/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,6 @@ export function addCommands(
807807

808808
tracker.currentChanged.connect(() => {
809809
commands.notifyCommandChanged(CommandIDs.updateClipView);
810-
commands.notifyCommandChanged(CommandIDs.toggleMeasurement);
811810
});
812811

813812
commands.addCommand(CommandIDs.splitScreen, {

0 commit comments

Comments
 (0)