From 0b5a2e0dcc473f4587f00a259157f5dc11fdfadb Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Sat, 14 Sep 2024 16:48:30 +0800 Subject: [PATCH] FIX: auto stop liveview not restart Change-Id: I815eddd44c825d9648ad036c7015e268acdb769a Jira: none --- src/slic3r/GUI/MediaPlayCtrl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/MediaPlayCtrl.cpp b/src/slic3r/GUI/MediaPlayCtrl.cpp index 1f56b5313..00d8082c5 100644 --- a/src/slic3r/GUI/MediaPlayCtrl.cpp +++ b/src/slic3r/GUI/MediaPlayCtrl.cpp @@ -190,6 +190,7 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj) if (SecondsSinceLastInput() >= 900) { // 15 min auto close = wxGetApp().app_config->get("liveview", "auto_stop_liveview") == "true"; if (close) { + m_next_retry = wxDateTime(); Stop(_L("Temporarily closed because there is no operating for a long time.")); return; } @@ -198,6 +199,7 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj) if (obj && obj->is_in_printing()) { m_print_idle = 0; } else if (++m_print_idle >= 5) { + m_next_retry = wxDateTime(); Stop(_L("Temporarily closed because there is no printing for a while.")); } }