fix: Do not show the cameras menu with <= 1 camera (#1616)
This commit is contained in:
1 parent
e75afbca2b
commit
b5c2f00128
2 files changed
+9
-5
No files matched your search
@@ -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