Skip to content

Commit

Permalink
handle reverting showing input and output
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Jul 29, 2023
1 parent 4583be9 commit f3f7cca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions photon-client/src/components/dashboard/tabs/ThresholdTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,19 @@ const handleStreamClick = (event: MouseEvent) => {
disableColorPicking();
};
// Put some default values incase color picking was enabled before the enableColorPicking method is called
let inputShowing = true;
let outputShowing = false;
const enableColorPicking = (mode: 1 | 2 | 3) => {
useStateStore().colorPickingMode = true;
inputShowing = useCameraSettingsStore().currentPipelineSettings.inputShouldShow;
outputShowing = useCameraSettingsStore().currentPipelineSettings.outputShouldShow;
useCameraSettingsStore().changeCurrentPipelineSetting({ outputShouldDraw: false, inputShouldShow: true, outputShouldShow: false }, true);
selectedEventMode = mode;
};
const disableColorPicking = () => {
useStateStore().colorPickingMode = false;
// TODO handle reverting showing input and output
useCameraSettingsStore().changeCurrentPipelineSetting({ outputShouldDraw: true }, true);
useCameraSettingsStore().changeCurrentPipelineSetting({ outputShouldDraw: true, inputShouldShow: inputShowing, outputShouldShow: outputShowing }, true);
selectedEventMode = 0;
};
Expand Down

0 comments on commit f3f7cca

Please sign in to comment.