Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
hubman
visca-executor
Merge requests
!12
Feature: set first camera active fix
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Сергей Вдовин
requested to merge
feature_fix-camera-updating
into
master
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
0
0
Compare
master
master (base)
and
latest version
latest version
9d6c1c9b
1 commit,
1 year ago
1 file
+
6
−
1
Expand all files
Preferences
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
internal/managers/camera_manager.go
+
6
−
1
Options
View file @ 9d6c1c9b
Edit in single-file editor
Open in Web IDE
Show full file
@@ -35,7 +35,7 @@ func NewCameraManager(config *models.RefreshConfig, logger *zap.Logger, callback
continue
}
if
len
(
manager
.
cameras
)
==
1
{
if
!
manager
.
isHasActive
()
{
manager
.
active
=
cam
.
Alias
}
}
@@ -425,3 +425,8 @@ func (c *cameraManager) addCamera(conf models.CameraConfig) error {
return
nil
}
func
(
c
*
cameraManager
)
isHasActive
()
bool
{
return
c
.
active
!=
""
}
Menu
Explore
Projects
Groups
Topics
Snippets