FIX: support timelapse without SD card

jira: [STUDIO-9197]

Change-Id: Icef881b037719d94c9faa403e40d4cd25b6d1856
(cherry picked from commit 883cc7881b9914632d39e0dba489fa2d55a48f36)
This commit is contained in:
xin.zhang 2024-12-27 14:51:40 +08:00 committed by Noisyfox
parent baf998c122
commit 80b20c15c5
3 changed files with 28 additions and 1 deletions

View file

@ -975,9 +975,16 @@ void SelectMachineDialog::update_select_layout(MachineObject *obj)
if (obj && obj->is_support_auto_leveling) {
m_checkbox_list["bed_leveling"]->Show();
}
if (obj && obj->is_support_timelapse) {
/*STUDIO-9197*/
if (obj && obj->canEnableTimelapse())
{
m_checkbox_list["timelapse"]->Show();
}
else
{
m_checkbox_list["timelapse"]->Hide();
}
Layout();
Fit();