16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 03:09:18 +02:00

extcam camera: separate preview and recording

This commit is contained in:
milek7
2019-09-20 20:16:55 +02:00
parent ccb2179d5e
commit 5602448caf
7 changed files with 67 additions and 13 deletions

View File

@@ -46,6 +46,16 @@ void ui::cameraview_panel::render()
ui_panel::render();
}
bool ui::cameraview_panel::set_state(state_e e)
{
if (state != e) {
state = e;
is_open = (state != IDLE);
return true;
}
return false;
}
void ui::cameraview_panel::render_contents()
{
if (exit_thread) {