ENH: refine camera status and settings

Change-Id: I2a8c23ca119ff5d38272dad46347704bf457dee0
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-12-09 16:46:51 +08:00 committed by Lane.Wei
parent 0d4b8382f5
commit 58dab90e53
17 changed files with 172 additions and 94 deletions

View file

@ -269,11 +269,12 @@ void CameraPopup::check_func_supported()
}
}
void CameraPopup::update()
void CameraPopup::update(bool vcamera_streaming)
{
if (!m_obj) return;
m_switch_recording->SetValue(m_obj->camera_recording_when_printing);
sync_resolution_setting(m_obj->camera_resolution);
sync_vcamera_state(vcamera_streaming);
rescale();
}