Fix snapshot methods not working (#1815)

This commit is contained in:
Gold856
2025-03-19 02:02:18 -04:00
committed by GitHub
parent 30645803e6
commit de98f5f02d
3 changed files with 167 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import { computed, inject, ref, onBeforeUnmount } from "vue";
import { useStateStore } from "@/stores/StateStore";
import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore";
import loadingImage from "@/assets/images/loading-transparent.svg";
import type { StyleValue } from "vue/types/jsx";
import PvIcon from "@/components/common/pv-icon.vue";
@@ -58,9 +59,9 @@ const overlayStyle = computed<StyleValue>(() => {
const handleCaptureClick = () => {
if (props.streamType === "Raw") {
props.cameraSettings.pipelineSettings[props.cameraSettings.currentPipelineIndex].saveInputSnapshot();
useCameraSettingsStore().saveInputSnapshot();
} else {
props.cameraSettings.pipelineSettings[props.cameraSettings.currentPipelineIndex].saveOutputSnapshot();
useCameraSettingsStore().saveOutputSnapshot();
}
};
const handlePopoutClick = () => {