FIX: [STUDIO-2448] switch machine in camera popup

Change-Id: I40531dde899beb11efea985348de8b77354e6724
This commit is contained in:
chunmao.guo 2023-05-18 13:49:33 +08:00 committed by Lane.Wei
parent c770926142
commit 164251531e
3 changed files with 10 additions and 12 deletions

View file

@ -3366,7 +3366,8 @@ void StatusPanel::on_camera_enter(wxMouseEvent& event)
{
if (obj) {
if (m_camera_popup == nullptr)
m_camera_popup = std::make_shared<CameraPopup>(this, obj);
m_camera_popup = std::make_shared<CameraPopup>(this);
m_camera_popup->check_func_supported(obj);
m_camera_popup->sync_vcamera_state(show_vcamera);
m_camera_popup->Bind(EVT_VCAMERA_SWITCH, &StatusPanel::on_switch_vcamera, this);
m_camera_popup->Bind(EVT_SDCARD_ABSENT_HINT, [this](wxCommandEvent &e) {