FIX: disable liveview idle check on internal build
Change-Id: I42b2d05bf277dad446d017f03375ae80999c9a63 Jira: none
This commit is contained in:
parent
647467e25b
commit
3145dd48ea
|
@ -181,6 +181,7 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj)
|
||||||
auto now = std::chrono::system_clock::now();
|
auto now = std::chrono::system_clock::now();
|
||||||
if (m_play_timer <= now) {
|
if (m_play_timer <= now) {
|
||||||
m_play_timer = now + 1min;
|
m_play_timer = now + 1min;
|
||||||
|
#if BBL_RELEASE_TO_PUBLIC
|
||||||
if (SecondsSinceLastInput() >= 900) { // 15 min
|
if (SecondsSinceLastInput() >= 900) { // 15 min
|
||||||
auto close = wxGetApp().app_config->get("liveview", "auto_stop_liveview") == "true";
|
auto close = wxGetApp().app_config->get("liveview", "auto_stop_liveview") == "true";
|
||||||
if (close) {
|
if (close) {
|
||||||
|
@ -196,6 +197,7 @@ void MediaPlayCtrl::SetMachineObject(MachineObject* obj)
|
||||||
m_next_retry = wxDateTime();
|
m_next_retry = wxDateTime();
|
||||||
Stop(_L("Temporarily closed because there is no printing for a while."));
|
Stop(_L("Temporarily closed because there is no printing for a while."));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue