mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 11:07:40 +00:00
ENH: update some missing codes
jira: no-jira Change-Id: Icb2da53911430ac144b0fb601637a7ad31e7e8db (cherry picked from commit 13b4213f8a24c76c16e49daf905fa29c0f646a5a)
This commit is contained in:
@@ -39,7 +39,7 @@ static std::map<int, std::string> error_messages = {
|
|||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
MediaPlayCtrl::MediaPlayCtrl(wxWindow *parent, wxMediaCtrl2 *media_ctrl, const wxPoint &pos, const wxSize &size)
|
MediaPlayCtrl::MediaPlayCtrl(wxWindow *parent, wxMediaCtrl3 *media_ctrl, const wxPoint &pos, const wxSize &size)
|
||||||
: wxPanel(parent, wxID_ANY, pos, size)
|
: wxPanel(parent, wxID_ANY, pos, size)
|
||||||
, m_media_ctrl(media_ctrl)
|
, m_media_ctrl(media_ctrl)
|
||||||
{
|
{
|
||||||
@@ -178,13 +178,6 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj)
|
|||||||
if (machine == m_machine) {
|
if (machine == m_machine) {
|
||||||
if (m_last_state == MEDIASTATE_IDLE && IsEnabled())
|
if (m_last_state == MEDIASTATE_IDLE && IsEnabled())
|
||||||
Play();
|
Play();
|
||||||
else if (m_last_state == MEDIASTATE_LOADING && m_tutk_state == "disable"
|
|
||||||
&& m_last_user_play + wxTimeSpan::Seconds(3) < wxDateTime::Now()) {
|
|
||||||
// resend ttcode to printer
|
|
||||||
if (auto agent = wxGetApp().getAgent())
|
|
||||||
agent->get_camera_url(machine, [](auto) {}, wxGetApp().get_printer_cloud_provider());
|
|
||||||
m_last_user_play = wxDateTime::Now();
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_machine = machine;
|
m_machine = machine;
|
||||||
|
|||||||
Reference in New Issue
Block a user