fix: Do not show the cameras menu with <= 1 camera (#1616)

This commit is contained in:
Dermot Duffy
2024-10-04 18:41:02 -07:00
committed by GitHub
parent e75afbca2b
commit b5c2f00128
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ export class MenuButtonController {
// Show all cameras in the menu rather than just cameras that support the
// current view for a less surprising UX.
const menuCameraIDs = cameraManager.getStore().getCameraIDsWithCapability('menu');
if (menuCameraIDs.size) {
if (menuCameraIDs.size > 1) {
const menuItems = Array.from(
cameraManager.getStore().getCameraConfigEntries(menuCameraIDs),
([cameraID, config]) => {