fix: Do not show the cameras menu with <= 1 camera (#1616)
This commit is contained in:
@@ -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]) => {
|
||||
|
||||
Reference in New Issue
Block a user