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

Change-Id: I40531dde899beb11efea985348de8b77354e6724
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2023-07-07 17:25:51 +08:00
1 parent c770926142
commit 164251531e
3 files changed
+10 -12

No files matched your search

+2 -1
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) {