Fix logic for no cameras detected modal (#1978)

fixes #1977 

Previously, the logic was checking for the camera object to be the same
as the placeholder camera object. Logic has been changed to check only
the name of the camera object.
This commit is contained in:
Sam Freund
2025-06-28 16:09:35 -05:00
committed by GitHub
parent 783d9d73be
commit a9c26202a0

View File

@@ -43,7 +43,7 @@ const cameraViewType = computed<number[]>({
const warningShown = computed<boolean>(() => {
return (
Object.values(useCameraSettingsStore().cameras).length === 0 ||
useCameraSettingsStore().cameras["Placeholder Name"] === PlaceholderCameraSettings
PlaceholderCameraSettings.nickname === useCameraSettingsStore().currentCameraName
);
});