mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 00:34:40 +01:00
camera: Use back camera by default
This commit is contained in:
parent
0acdc37bd9
commit
1e99792303
1 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,9 @@ impl Camera {
|
|||
Ok(fd) => {
|
||||
if let Err(err) = provider.set_fd(fd) {
|
||||
tracing::error!("Could not use the camera portal: {err}");
|
||||
} else if let Err(err) = provider.start() {
|
||||
} else if let Err(err) = provider.start_with_default(|camera| {
|
||||
matches!(camera.location(), aperture::CameraLocation::Back)
|
||||
}) {
|
||||
tracing::error!("Could not start the device provider: {err}");
|
||||
} else {
|
||||
tracing::debug!("Device provider started");
|
||||
|
|
Loading…
Add table
Reference in a new issue