mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Save video dev name in settings
This commit is contained in:
parent
63fe107c2e
commit
e5684a4bbf
|
@ -102,7 +102,9 @@ void AVForm::onVideoDevChanged(int index)
|
|||
camVideoSurface->setSource(nullptr);
|
||||
if (camera)
|
||||
delete camera;
|
||||
camera = new CameraSource(videoDeviceList[index].first);
|
||||
QString dev = videoDeviceList[index].first;
|
||||
Settings::getInstance().setVideoDev(dev);
|
||||
camera = new CameraSource(dev);
|
||||
camVideoSurface->setSource(camera);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user