FIX: stop video when not visible

Change-Id: Ibc5204084efec5381a7ede9face0519276592aa8
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2022-09-02 13:16:54 +08:00
1 parent 08c9385383
commit 4601022aaa
3 files changed
+15 -3

No files matched your search

+1 -2
View File
@@ -402,7 +402,7 @@ void MonitorPanel::update_all()
m_upgrade_panel->update(obj);
m_status_info_panel->m_media_play_ctrl->SetMachineObject(IsShown() ? obj : nullptr);
m_status_info_panel->m_media_play_ctrl->SetMachineObject(obj);
m_media_file_panel->SetMachineObject(obj);
update_status(obj);
@@ -466,7 +466,6 @@ bool MonitorPanel::Show(bool show)
}
} else {
m_refresh_timer->Stop();
m_status_info_panel->m_media_play_ctrl->SetMachineObject(nullptr);
}
return wxPanel::Show(show);
}