mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
ENH: refine camera setting logic
Change-Id: I3d80950e8f6a6391b31a06929645af17cc779cb9 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user