ENH: refine camera setting logic

Change-Id: I3d80950e8f6a6391b31a06929645af17cc779cb9
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-12-06 14:06:38 +08:00 committed by Lane.Wei
parent e3739a8a0f
commit 1c02449201
3 changed files with 11 additions and 3 deletions

View file

@ -135,6 +135,7 @@ void CameraPopup::on_switch_timelapse(wxCommandEvent& event)
return;
}
bool value = m_switch_timelapse->GetValue();
m_switch_timelapse->SetValue(!value);
m_obj->command_ipcam_timelapse(!value);
}
@ -146,6 +147,7 @@ void CameraPopup::on_switch_recording(wxCommandEvent& event)
return;
}
bool value = m_switch_recording->GetValue();
m_switch_recording->SetValue(!value);
m_obj->command_ipcam_record(!value);
}