FIX: disable liveview idle check on internal build

Change-Id: I42b2d05bf277dad446d017f03375ae80999c9a63
Jira: none
This commit is contained in:
chunmao.guo 2024-10-23 10:21:26 +08:00 committed by lane.wei
parent 647467e25b
commit 3145dd48ea
1 changed files with 2 additions and 0 deletions

View File

@ -181,6 +181,7 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj)
auto now = std::chrono::system_clock::now();
if (m_play_timer <= now) {
m_play_timer = now + 1min;
#if BBL_RELEASE_TO_PUBLIC
if (SecondsSinceLastInput() >= 900) { // 15 min
auto close = wxGetApp().app_config->get("liveview", "auto_stop_liveview") == "true";
if (close) {
@ -196,6 +197,7 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj)
m_next_retry = wxDateTime();
Stop(_L("Temporarily closed because there is no printing for a while."));
}
#endif
}
}
return;